Index: frog/tests/leg/src/TypeInferenceTest.dart |
diff --git a/frog/tests/leg/src/TypeInferenceTest.dart b/frog/tests/leg/src/TypeInferenceTest.dart |
index cbb1c36d2ad27dec452ecbfd8afe1d398438de2e..863b76d7f954079e1617fcae790cacc47e374c07 100644 |
--- a/frog/tests/leg/src/TypeInferenceTest.dart |
+++ b/frog/tests/leg/src/TypeInferenceTest.dart |
@@ -49,8 +49,14 @@ main(a) { |
main() { |
String generated = compile(TEST_ONE, 'sum'); |
+ RegExp regexp = new RegExp("i = \\(?$anyIdentifier \\+ \\(1\\)\\)?"); |
+ // TODO(ngeoffray): Do live range analysis to make this test pass. |
+ Expect.isFalse(regexp.hasMatch(generated)); |
- Regexp regexp = new RegExp("sum = \\(?$anyIdentifier \\+ $anyIdentifier\\)?"); |
+ regexp = new RegExp("sum = \\(?$anyIdentifier \\+ $anyIdentifier\\)?"); |
+ Expect.isTrue(regexp.hasMatch(generated)); |
+ |
+ regexp = const RegExp("typeof param0 !== 'number'"); |
Expect.isTrue(regexp.hasMatch(generated)); |
regexp = const RegExp("typeof param1 !== 'number'"); |