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

Unified Diff: pkg/fixnum/test/int_64_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: Comment and test update. 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: pkg/fixnum/test/int_64_test.dart
diff --git a/pkg/fixnum/test/int_64_test.dart b/pkg/fixnum/test/int_64_test.dart
index c52e2e599bb98da2b6bd8b2a7a075bea1bfacae9..4b7cbf1b59117b93ccf9d943f6bc8393bb8374bb 100644
--- a/pkg/fixnum/test/int_64_test.dart
+++ b/pkg/fixnum/test/int_64_test.dart
@@ -424,7 +424,7 @@ void testShift() {
Expect.equals(new int64.fromInt(-1), new int64.fromInt(-1) >> n);
}
- Expect.equals(new int64.fromInt(-1 << 5), new int64.fromInt(-1) << 5);
+ Expect.equals(new int64.fromInt(-32), new int64.fromInt(-1) << 5);
Expect.equals(new int64.fromInt(-1), new int64.fromInt(-1) << 0);
Expect.equals(-new int64.fromInts(0x40000000, 0x00000000),
(new int64.fromInt(1) << 63) >> 1);

Powered by Google App Engine
This is Rietveld 408576698