Index: tests/corelib/double_floor_test.dart |
diff --git a/tests/corelib/double_floor_test.dart b/tests/corelib/double_floor_test.dart |
index 7407561bf67b27ad9d4899c3e94097cfec4a66ff..e7732757ac7bb6d6e33bd6ccaec6e4e6f057104e 100644 |
--- a/tests/corelib/double_floor_test.dart |
+++ b/tests/corelib/double_floor_test.dart |
@@ -24,8 +24,9 @@ main() { |
Expect.equals(9007199254740991, 9007199254740991.0.floor()); |
Expect.equals(9007199254740992, 9007199254740992.0.floor()); |
- Expect.equals(179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368, |
- double.MAX_FINITE.floor()); |
+ Expect.equals( |
+ 179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368, |
+ double.MAX_FINITE.floor()); |
Expect.equals(-1, (-double.MIN_POSITIVE).floor()); |
Expect.equals(-1, (2.0 * -double.MIN_POSITIVE).floor()); |
@@ -42,8 +43,9 @@ main() { |
Expect.equals(-4503599627370499, (-4503599627370499.0).floor()); |
Expect.equals(-9007199254740991, (-9007199254740991.0).floor()); |
Expect.equals(-9007199254740992, (-9007199254740992.0).floor()); |
- Expect.equals(-179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368, |
- (-double.MAX_FINITE).floor()); |
+ Expect.equals( |
+ -179769313486231570814527423731704356798070567525844996598917476803157260780028538760589558632766878171540458953514382464234321326889464182768467546703537516986049910576551282076245490090389328944075868508455133942304583236903222948165808559332123348274797826204144723168738177180919299881250404026184124858368, |
+ (-double.MAX_FINITE).floor()); |
Expect.isTrue(0.0.floor() is int); |
Expect.isTrue(double.MIN_POSITIVE.floor() is int); |