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

Unified Diff: tests/corelib/expression_test.dart

Issue 10825386: Use JavaScript runtime semantics when constant folding. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 3 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: tests/corelib/expression_test.dart
diff --git a/tests/corelib/expression_test.dart b/tests/corelib/expression_test.dart
index 61d8ccc4b7f0dca38b776f7cacd7c00853c3bc45..910a0c2d7f5d5e05a1769cc7a5ef20d7a550f879 100644
--- a/tests/corelib/expression_test.dart
+++ b/tests/corelib/expression_test.dart
@@ -30,10 +30,10 @@ class ExpressionTest {
}
testUnary() {
- int x = 4, y = 2;
+ int x = 4, y = 2, z = -5;
bool t = true, f = false;
Expect.equals(-4, -x);
- Expect.equals(-5, ~x);
+ Expect.equals(4, ~z);
Expect.equals(f, !t);
}
« no previous file with comments | « tests/compiler/dart2js_extra/constant_javascript_semantics_test.dart ('k') | tests/language/argument_definition2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698