| Index: dart/frog/tests/leg/src/ConstantFoldingTest.dart
|
| diff --git a/dart/frog/tests/leg/src/ConstantFoldingTest.dart b/dart/frog/tests/leg/src/ConstantFoldingTest.dart
|
| index 6828d8eed77419e854ab78b4e4b7c4d11ba34b90..729d7f6cb65d75ec797f2893ea962a910268259c 100644
|
| --- a/dart/frog/tests/leg/src/ConstantFoldingTest.dart
|
| +++ b/dart/frog/tests/leg/src/ConstantFoldingTest.dart
|
| @@ -42,17 +42,18 @@ void main() {
|
|
|
| void compileAndTest(String code, String entry, RegExp regexp) {
|
| String generated = compile(code, entry);
|
| - Expect.isTrue(regexp.hasMatch(generated));
|
| + Expect.isTrue(regexp.hasMatch(generated),
|
| + '"$generated" does not match /$regexp/');
|
| }
|
|
|
| main() {
|
| compileAndTest(
|
| - NUMBER_FOLDING, 'main', const RegExp(@"print\$1\(\(7\)\)"));
|
| + NUMBER_FOLDING, 'main', const RegExp(@"print\(\(7\)\)"));
|
| compileAndTest(
|
| - NEGATIVE_NUMBER_FOLDING, 'main', const RegExp(@"print\$1\(\(1\)\)"));
|
| + NEGATIVE_NUMBER_FOLDING, 'main', const RegExp(@"print\(\(1\)\)"));
|
|
|
| String generated = compile(NULL_EQUALS_FOLDING, 'foo');
|
| - RegExp regexp = const RegExp(@'eqNull\$1\(a\)');
|
| + RegExp regexp = const RegExp(@'eqNull\(a\)');
|
| Expect.isTrue(regexp.hasMatch(generated));
|
|
|
| regexp = const RegExp(@'\(?void 0\)? === b');
|
|
|