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

Unified Diff: tests/corelib_strong/double_floor_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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_strong/double_floor_test.dart
diff --git a/tests/corelib_strong/double_floor_test.dart b/tests/corelib_strong/double_floor_test.dart
index c59f411351a111ba7d326f0dc30ddc5418954197..e7732757ac7bb6d6e33bd6ccaec6e4e6f057104e 100644
--- a/tests/corelib_strong/double_floor_test.dart
+++ b/tests/corelib_strong/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);
@@ -79,4 +81,4 @@ main() {
Expect.isTrue((-9007199254740991.0).floor() is int);
Expect.isTrue((-9007199254740992.0).floor() is int);
Expect.isTrue((-double.MAX_FINITE).floor() is int);
-}
+}

Powered by Google App Engine
This is Rietveld 408576698