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

Unified Diff: tests/corelib/double_round4_test.dart

Issue 12761004: Move more tests to IE-fail test-file. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 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 | « no previous file | tests/corelib/double_round_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/double_round4_test.dart
diff --git a/tests/corelib/double_round4_test.dart b/tests/corelib/double_round4_test.dart
index 0ae90cae8006cc81e3910d3028e494b8ffce67fc..ab546aef7771cddaae982786ede57e7cf4cd5439 100644
--- a/tests/corelib/double_round4_test.dart
+++ b/tests/corelib/double_round4_test.dart
@@ -10,17 +10,27 @@ main() {
Expect.equals(4503599627370498, 4503599627370498.0.round());
Expect.equals(4503599627370499, 4503599627370499.0.round());
+ Expect.equals(9007199254740991, 9007199254740991.0.round());
+ Expect.equals(9007199254740992, 9007199254740992.0.round());
+
Expect.equals(-4503599627370496, (-4503599627370496.0).round());
Expect.equals(-4503599627370497, (-4503599627370497.0).round());
Expect.equals(-4503599627370498, (-4503599627370498.0).round());
Expect.equals(-4503599627370499, (-4503599627370499.0).round());
+ Expect.equals(-9007199254740991, (-9007199254740991.0).round());
+ Expect.equals(-9007199254740992, (-9007199254740992.0).round());
+
Expect.isTrue(4503599627370496.0.round() is int);
Expect.isTrue(4503599627370497.0.round() is int);
Expect.isTrue(4503599627370498.0.round() is int);
Expect.isTrue(4503599627370499.0.round() is int);
+ Expect.isTrue(9007199254740991.0.round() is int);
+ Expect.isTrue(9007199254740992.0.round() is int);
Expect.isTrue((-4503599627370496.0).round() is int);
Expect.isTrue((-4503599627370497.0).round() is int);
Expect.isTrue((-4503599627370498.0).round() is int);
Expect.isTrue((-4503599627370499.0).round() is int);
+ Expect.isTrue((-9007199254740991.0).round() is int);
+ Expect.isTrue((-9007199254740992.0).round() is int);
}
« no previous file with comments | « no previous file | tests/corelib/double_round_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698