Chromium Code Reviews| Index: frog/tests/leg/src/ConstantFoldingTest.dart |
| =================================================================== |
| --- frog/tests/leg/src/ConstantFoldingTest.dart (revision 3496) |
| +++ frog/tests/leg/src/ConstantFoldingTest.dart (working copy) |
| @@ -38,12 +38,12 @@ |
| main() { |
| compileAndTest( |
| - NUMBER_FOLDING, 'main', const RegExp("print\\(7\\)")); |
| + NUMBER_FOLDING, 'main', const RegExp("print\\\$1\\(7\\)")); |
|
floitsch
2012/01/24 11:46:03
please switch to @ strings.
ngeoffray
2012/01/24 12:09:39
Done.
|
| compileAndTest( |
| - NEGATIVE_NUMBER_FOLDING, 'main', const RegExp("print\\(1\\)")); |
| + NEGATIVE_NUMBER_FOLDING, 'main', const RegExp("print\\\$1\\(1\\)")); |
|
floitsch
2012/01/24 11:46:03
ditto
ngeoffray
2012/01/24 12:09:39
Done.
|
| String generated = compile(NULL_EQUALS_FOLDING, 'foo'); |
| - RegExp regexp = const RegExp('eqNull\\(a\\)'); |
| + RegExp regexp = const RegExp('eqNull\\\$1\\(a\\)'); |
|
floitsch
2012/01/24 11:46:03
ditto.
ngeoffray
2012/01/24 12:09:39
Done.
|
| Expect.isTrue(regexp.hasMatch(generated)); |
| regexp = const RegExp('\\(void 0\\) === b'); |