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

Unified Diff: tests/compiler/dart2js/type_inference2_test.dart

Issue 10831392: If an instruction is known to already by a number, the integer check will try to make it an integer. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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 | « tests/compiler/dart2js/dart2js.status ('k') | tests/compiler/dart2js/type_inference4_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/compiler/dart2js/type_inference2_test.dart
===================================================================
--- tests/compiler/dart2js/type_inference2_test.dart (revision 10938)
+++ tests/compiler/dart2js/type_inference2_test.dart (working copy)
@@ -14,7 +14,5 @@
main() {
String generated = compile(TEST_ONE, 'sum');
- // We don't want "i = t0" in the loop-update, but i = <id> + 1.
- RegExp regexp = new RegExp("i = \\(?$anyIdentifier \\+ \\(1\\)\\)?");
- Expect.isTrue(regexp.hasMatch(generated));
+ Expect.isTrue(generated.contains('++i'));
}
« no previous file with comments | « tests/compiler/dart2js/dart2js.status ('k') | tests/compiler/dart2js/type_inference4_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698