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

Unified Diff: tests/language_strong/bit_operations_test.dart

Issue 2768073002: Format all multitests (Closed)
Patch Set: Created 3 years, 9 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_strong/bit_operations_test.dart
diff --git a/tests/language_strong/bit_operations_test.dart b/tests/language_strong/bit_operations_test.dart
index a704f682970e529532fa684ee843a024d8d7f981..40cae48663300fb239391eb79a2c98b1221ac21c 100644
--- a/tests/language_strong/bit_operations_test.dart
+++ b/tests/language_strong/bit_operations_test.dart
@@ -24,24 +24,24 @@ void test() {
Expect.equals(-0x10000000000000000, -1 << 64);
Expect.equals(0x40000000, 0x04000000 << 4);
Expect.equals(0x4000000000000000, 0x0400000000000000 << 4);
- Expect.equals(0, ~-1);
+ Expect.equals(0, ~ -1);
Expect.equals(-1, ~0);
Expect.equals(0, 1 >> 160);
Expect.equals(-1, -1 >> 160);
- Expect.equals(0x100000000000000001,
- 0x100000000000000001 & 0x100000100F00000001);
+ Expect.equals(
+ 0x100000000000000001, 0x100000000000000001 & 0x100000100F00000001);
Expect.equals(0x1, 0x1 & 0x100000100F00000001);
Expect.equals(0x1, 0x100000100F00000001 & 0x1);
- Expect.equals(0x100000100F00000001,
- 0x100000000000000001 | 0x100000100F00000001);
+ Expect.equals(
+ 0x100000100F00000001, 0x100000000000000001 | 0x100000100F00000001);
Expect.equals(0x100000100F00000011, 0x11 | 0x100000100F00000001);
Expect.equals(0x100000100F00000011, 0x100000100F00000001 | 0x11);
- Expect.equals(0x0F000F00000000000000,
- 0x0F00F00000000000001 ^ 0xFF00000000000000001);
+ Expect.equals(
+ 0x0F000F00000000000000, 0x0F00F00000000000001 ^ 0xFF00000000000000001);
Expect.equals(0x31, 0xF00F00000000000001 ^ 0xF00F00000000000030);
Expect.equals(0xF00F00000000000031, 0xF00F00000000000001 ^ 0x30);
Expect.equals(0xF00F00000000000031, 0x30 ^ 0xF00F00000000000001);
@@ -67,8 +67,8 @@ void test() {
}
// Test precedence.
- testPrecedence(4,5,3,1);
- testPrecedence(3,4,5,9);
+ testPrecedence(4, 5, 3, 1);
+ testPrecedence(3, 4, 5, 9);
testPrecedence(0x5c71, 0x6b92, 0x7654, 0x7d28);
}
@@ -95,7 +95,7 @@ void testLeftShift64Bit() {
Expect.equals(0x7fffffff80000000, t << 31);
Expect.equals(0x10000000000000000, 2*(t+1) << 31); //# 01: static type warning
Expect.equals(0x20000000000000000, 4*(t+1) << 31); //# 02: static type warning
- Expect.equals(0x8000000000000000, (t+1) << 31);
+ Expect.equals(0x8000000000000000, (t + 1) << 31);
}
void testLeftShift64BitWithOverflow1() {
@@ -110,7 +110,7 @@ void testLeftShift64BitWithOverflow2() {
void testLeftShift64BitWithOverflow3() {
var t = 0xffffffff;
- Expect.equals(0x8000000000000000, (t+1) << 31);
+ Expect.equals(0x8000000000000000, (t + 1) << 31);
}
void testNegativeCountShifts() {
@@ -175,8 +175,13 @@ void testNoMaskingOfShiftCount() {
}
}
-int shiftLeft(int a, int b) { return a << b; }
-int shiftRight(int a, int b) { return a >> b; }
+int shiftLeft(int a, int b) {
+ return a << b;
+}
+
+int shiftRight(int a, int b) {
+ return a >> b;
+}
void testPrecedence(int a, int b, int c, int d) {
// & binds stronger than ^, which binds stronger than |.

Powered by Google App Engine
This is Rietveld 408576698