Index: tests/language/bit_operations_test.dart |
diff --git a/tests/language/bit_operations_test.dart b/tests/language/bit_operations_test.dart |
index 431ca57ded58079af33778e2154040dd46f6df25..fbe11d6dfaf4ad198280d8031fb808b8e2baa4e0 100644 |
--- a/tests/language/bit_operations_test.dart |
+++ b/tests/language/bit_operations_test.dart |
@@ -58,7 +58,7 @@ class BitOperationsTest { |
TestCornerCasesLeftShifts(); |
} |
} |
- |
+ |
static void TestCornerCasesLeftShifts() { |
var v32 = 0xFF000000; |
var v64 = 0xFF00000000000000; |
@@ -69,26 +69,26 @@ class BitOperationsTest { |
Expect.equals(0x1, v64 >> 0x3F); |
Expect.equals(0x0, v64 >> 0x40); |
} |
- |
+ |
static void TestNegativeCountShifts() { |
bool throwOnLeft(a, b) { |
try { |
var x = a << b; |
return false; |
- } catch(var e) { |
+ } catch (e) { |
return true; |
} |
} |
- |
+ |
bool throwOnRight(a, b) { |
try { |
var x = a >> b; |
return false; |
- } catch(var e) { |
+ } catch (e) { |
return true; |
} |
} |
- |
+ |
Expect.isTrue(throwOnLeft(12, -3)); |
Expect.isTrue(throwOnRight(12, -3)); |
for (int i = 0; i < 4000; i++) { |