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

Unified Diff: frog/tests/leg/type_inference_test.dart

Issue 10375048: Don't allow phi equivalences along back-edges. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Added test. Updated other tests. Simplified isPhiBefore. Created 8 years, 7 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
Index: frog/tests/leg/type_inference_test.dart
diff --git a/frog/tests/leg/type_inference_test.dart b/frog/tests/leg/type_inference_test.dart
index 5d64e89b19df8af6485202b3d83bc0073d0a9dfb..73de3b2e1b8b8a3718e461c448963dcb83e9afcd 100644
--- a/frog/tests/leg/type_inference_test.dart
+++ b/frog/tests/leg/type_inference_test.dart
@@ -68,8 +68,8 @@ foo(a) {
main() {
String generated = compile(TEST_ONE, 'sum');
-
- RegExp regexp = new RegExp("sum = \\(?$anyIdentifier \\+ $anyIdentifier\\)?");
+ RegExp regexp =
+ new RegExp("sum\\d+ = \\(?$anyIdentifier \\+ $anyIdentifier\\)?");
Expect.isTrue(regexp.hasMatch(generated));
regexp = const RegExp("typeof param1 !== 'number'");

Powered by Google App Engine
This is Rietveld 408576698