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

Unified Diff: tests/corelib/double_truncate_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/double_truncate_test.dart
diff --git a/tests/corelib/double_truncate_test.dart b/tests/corelib/double_truncate_test.dart
index f4f0e79a3b2409c8e7dc722697ae03b3ba0c3688..8c6a322916f4e5da995cc6ca542977754606f06d 100644
--- a/tests/corelib/double_truncate_test.dart
+++ b/tests/corelib/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);
-}
+}

Powered by Google App Engine
This is Rietveld 408576698