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

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

Issue 10440087: Compute liveness of instructions to get better and fewer variable names. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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
« no previous file with comments | « frog/tests/leg/type_guard_unuser_test.dart ('k') | lib/compiler/implementation/ssa/builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/tests/leg/type_inference_test.dart
===================================================================
--- frog/tests/leg/type_inference_test.dart (revision 8141)
+++ frog/tests/leg/type_inference_test.dart (working copy)
@@ -67,15 +67,11 @@
main() {
String generated = compile(TEST_ONE, 'sum');
- RegExp regexp =
- new RegExp("sum\\d+ = \\(?$anyIdentifier \\+ $anyIdentifier\\)?");
- Expect.isTrue(regexp.hasMatch(generated));
+ Expect.isTrue(generated.contains('sum = sum + i'));
+ Expect.isTrue(generated.contains("typeof param1 !== 'number'"));
- regexp = const RegExp("typeof param1 !== 'number'");
- Expect.isTrue(regexp.hasMatch(generated));
-
generated = compile(TEST_TWO, 'foo');
- regexp = new RegExp(getNumberTypeCheck('param0'));
+ RegExp regexp = new RegExp(getNumberTypeCheck('param0'));
Expect.isTrue(!regexp.hasMatch(generated));
regexp = const RegExp('-param0');
« no previous file with comments | « frog/tests/leg/type_guard_unuser_test.dart ('k') | lib/compiler/implementation/ssa/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698