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

Unified Diff: tests/language/bit_operations_test.dart

Issue 2770063002: Revert "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
« no previous file with comments | « tests/language/bad_typedef_test.dart ('k') | tests/language/black_listed_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/bit_operations_test.dart
diff --git a/tests/language/bit_operations_test.dart b/tests/language/bit_operations_test.dart
index 0d3eece04bde8d098e2989f61d4870713d0eebb3..27d0c5f9d0fbda69935ed28456eef88d25a0c225 100644
--- a/tests/language/bit_operations_test.dart
+++ b/tests/language/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,13 +175,8 @@ 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 |.
« no previous file with comments | « tests/language/bad_typedef_test.dart ('k') | tests/language/black_listed_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698