expectError function

String expectError(
  1. String expectation,
  2. String found
)

Implementation

String expectError(String expectation, String found) {
  return Intl.message(
    "Expected to find $expectation. Found '$found'.",
    name: 'expectErrorMessage',
    args: [expectation, found],
    desc: 'The error message for unqualified parsing expectation',
  );
}