Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(914)

Unified Diff: frog/tests/leg/src/TypeInferenceTest.dart

Issue 9956152: Reapply "Refactor type propagation." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Apply fix. Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « frog/tests/leg/src/TypeInference3Test.dart ('k') | lib/compiler/implementation/ssa/bailout.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/tests/leg/src/TypeInferenceTest.dart
diff --git a/frog/tests/leg/src/TypeInferenceTest.dart b/frog/tests/leg/src/TypeInferenceTest.dart
index 863b76d7f954079e1617fcae790cacc47e374c07..dcae12b341166493829c49755e412f30a566e10f 100644
--- a/frog/tests/leg/src/TypeInferenceTest.dart
+++ b/frog/tests/leg/src/TypeInferenceTest.dart
@@ -49,14 +49,8 @@ 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 = new RegExp("sum = \\(?$anyIdentifier \\+ $anyIdentifier\\)?");
- Expect.isTrue(regexp.hasMatch(generated));
-
- regexp = const RegExp("typeof param0 !== 'number'");
+ RegExp regexp = new RegExp("sum = \\(?$anyIdentifier \\+ $anyIdentifier\\)?");
Expect.isTrue(regexp.hasMatch(generated));
regexp = const RegExp("typeof param1 !== 'number'");
« no previous file with comments | « frog/tests/leg/src/TypeInference3Test.dart ('k') | lib/compiler/implementation/ssa/bailout.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698