expectError function
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',
);
}