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

Unified Diff: tests/corelib/toInt_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/toInt_test.dart
diff --git a/tests/corelib/toInt_test.dart b/tests/corelib/toInt_test.dart
index 7a69691db7b514f146194b77b7d727c1b54b70d3..0261d7da0a6e5e50818a63c451281f15d93ebc0b 100644
--- a/tests/corelib/toInt_test.dart
+++ b/tests/corelib/toInt_test.dart
@@ -5,16 +5,16 @@
import "package:expect/expect.dart";
main() {
- Expect.equals(-0x80000001, (-0x80000001).toInt());
- Expect.equals(-0x80000000, (-0x80000000 - 0.7).toInt());
- Expect.equals(-0x80000000, (-0x80000000 - 0.3).toInt());
- Expect.equals(-0x7FFFFFFF, (-0x80000000 + 0.3).toInt());
- Expect.equals(-0x7FFFFFFF, (-0x80000000 + 0.7).toInt());
- Expect.equals(-0x7FFFFFFF, (-0x7FFFFFFF).toInt());
- Expect.equals(0x7FFFFFFE, (0x7FFFFFFE).toInt());
- Expect.equals(0x7FFFFFFE, (0x7FFFFFFF - 0.7).toInt());
- Expect.equals(0x7FFFFFFE, (0x7FFFFFFF - 0.3).toInt());
- Expect.equals(0x7FFFFFFF, (0x7FFFFFFF + 0.3).toInt());
- Expect.equals(0x7FFFFFFF, (0x7FFFFFFF + 0.7).toInt());
- Expect.equals(0x80000000, 0x80000000.toInt());
+ Expect.equals(-0x80000001, (-0x80000001).toInt());
+ Expect.equals(-0x80000000, (-0x80000000 - 0.7).toInt());
+ Expect.equals(-0x80000000, (-0x80000000 - 0.3).toInt());
+ Expect.equals(-0x7FFFFFFF, (-0x80000000 + 0.3).toInt());
+ Expect.equals(-0x7FFFFFFF, (-0x80000000 + 0.7).toInt());
+ Expect.equals(-0x7FFFFFFF, (-0x7FFFFFFF).toInt());
+ Expect.equals(0x7FFFFFFE, (0x7FFFFFFE).toInt());
+ Expect.equals(0x7FFFFFFE, (0x7FFFFFFF - 0.7).toInt());
+ Expect.equals(0x7FFFFFFE, (0x7FFFFFFF - 0.3).toInt());
+ Expect.equals(0x7FFFFFFF, (0x7FFFFFFF + 0.3).toInt());
+ Expect.equals(0x7FFFFFFF, (0x7FFFFFFF + 0.7).toInt());
+ Expect.equals(0x80000000, 0x80000000.toInt());
}

Powered by Google App Engine
This is Rietveld 408576698