Index: tests/corelib_strong/double_truncate_test.dart |
diff --git a/tests/corelib_strong/double_truncate_test.dart b/tests/corelib_strong/double_truncate_test.dart |
index f4f0e79a3b2409c8e7dc722697ae03b3ba0c3688..8c6a322916f4e5da995cc6ca542977754606f06d 100644 |
--- a/tests/corelib_strong/double_truncate_test.dart |
+++ b/tests/corelib_strong/double_truncate_test.dart |
@@ -24,8 +24,9 @@ main() { |
Expect.equals(9007199254740991, 9007199254740991.0.truncate()); |
Expect.equals(9007199254740992, 9007199254740992.0.truncate()); |
- Expect.equals(179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368, |
- double.MAX_FINITE.truncate()); |
+ Expect.equals( |
+ 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368, |
+ double.MAX_FINITE.truncate()); |
Expect.equals(0, (-double.MIN_POSITIVE).truncate()); |
Expect.equals(0, (2.0 * -double.MIN_POSITIVE).truncate()); |
@@ -42,8 +43,9 @@ main() { |
Expect.equals(-4503599627370499, (-4503599627370499.0).truncate()); |
Expect.equals(-9007199254740991, (-9007199254740991.0).truncate()); |
Expect.equals(-9007199254740992, (-9007199254740992.0).truncate()); |
- Expect.equals(-179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368, |
- (-double.MAX_FINITE).truncate()); |
+ Expect.equals( |
+ -179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368, |
+ (-double.MAX_FINITE).truncate()); |
Expect.isTrue(0.0.truncate() is int); |
Expect.isTrue(double.MIN_POSITIVE.truncate() is int); |
@@ -87,4 +89,4 @@ main() { |
Expect.isTrue((-9007199254740991.0).truncate() is int); |
Expect.isTrue((-9007199254740992.0).truncate() is int); |
Expect.isTrue((-double.MAX_FINITE).truncate() is int); |
-} |
+} |