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

Unified Diff: tests/language/positive_bit_operations_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/language/positive_bit_operations_test.dart
diff --git a/tests/language/positive_bit_operations_test.dart b/tests/language/positive_bit_operations_test.dart
index 9663db27381cdb8778c2735caeb26b294830e690..396360c532b726618ad7e04b199bfca03b7dba7a 100644
--- a/tests/language/positive_bit_operations_test.dart
+++ b/tests/language/positive_bit_operations_test.dart
@@ -20,13 +20,19 @@ constants() {
Expect.equals(0x80000000, 1 << 31);
Expect.equals(0xFFFFFFF0, 0xFFFFFFF << 4);
Expect.equals(0x7FFFFFFF, 0xFFFFFFFF >> 1);
- Expect.equals(0xFFFFFFFC,
- ((((((0xFFFFFFF << 4) // 0xFFFFFFF0
- >> 1) // 0x7FFFFFF8
- | 0x80000000) // 0xFFFFFFF8
- >> 2) // 0x3FFFFFFE
- ^ 0x40000000) // 0x7FFFFFFE
- << 1));
+ Expect.equals(
+ 0xFFFFFFFC,
+ ((((((0xFFFFFFF << 4) // 0xFFFFFFF0
+ >>
+ 1) // 0x7FFFFFF8
+ |
+ 0x80000000) // 0xFFFFFFF8
+ >>
+ 2) // 0x3FFFFFFE
+ ^
+ 0x40000000) // 0x7FFFFFFE
+ <<
+ 1));
}
foo(i) {
@@ -62,13 +68,19 @@ interceptors() {
Expect.equals(0x80000000, id(1) << id(31));
Expect.equals(0xFFFFFFF0, id(0xFFFFFFF) << id(4));
Expect.equals(0x7FFFFFFF, id(0xFFFFFFFF) >> id(1));
- Expect.equals(0xFFFFFFFC,
- ((((((id(0xFFFFFFF) << 4) // 0xFFFFFFF0
- >> 1) // 0x7FFFFFF8
- | 0x80000000) // 0xFFFFFFF8
- >> 2) // 0x3FFFFFFE
- ^ 0x40000000) // 0x7FFFFFFE
- << 1));
+ Expect.equals(
+ 0xFFFFFFFC,
+ ((((((id(0xFFFFFFF) << 4) // 0xFFFFFFF0
+ >>
+ 1) // 0x7FFFFFF8
+ |
+ 0x80000000) // 0xFFFFFFF8
+ >>
+ 2) // 0x3FFFFFFE
+ ^
+ 0x40000000) // 0x7FFFFFFE
+ <<
+ 1));
}
speculative() {
@@ -100,13 +112,19 @@ speculative() {
Expect.equals(0x80000000, c << k);
Expect.equals(0xFFFFFFF0, m << l);
Expect.equals(0x7FFFFFFF, f >> c);
- Expect.equals(0xFFFFFFFC,
- ((((((m << 4) // 0xFFFFFFF0
- >> 1) // 0x7FFFFFF8
- | 0x80000000) // 0xFFFFFFF8
- >> 2) // 0x3FFFFFFE
- ^ 0x40000000) // 0x7FFFFFFE
- << 1));
+ Expect.equals(
+ 0xFFFFFFFC,
+ ((((((m << 4) // 0xFFFFFFF0
+ >>
+ 1) // 0x7FFFFFF8
+ |
+ 0x80000000) // 0xFFFFFFF8
+ >>
+ 2) // 0x3FFFFFFE
+ ^
+ 0x40000000) // 0x7FFFFFFE
+ <<
+ 1));
}
}

Powered by Google App Engine
This is Rietveld 408576698