expectNoRegexMatch function
Expect that value
does not match with regex
.
Implementation
void expectNoRegexMatch(
String value,
RegExp regex, {
String? reason,
dynamic skip, // true or a String
}) {
final matcher = predicate<String>(
(obj) => !regex.hasMatch(obj),
"Should NOT MATCH the regular expression: /${regex.pattern}/",
);
expect(
value,
matcher,
reason: reason,
skip: skip,
);
}