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

Unified Diff: tests/standalone/left_shift_bit_and_op_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/standalone/left_shift_bit_and_op_test.dart
diff --git a/tests/standalone/left_shift_bit_and_op_test.dart b/tests/standalone/left_shift_bit_and_op_test.dart
index 490881aef600c58352c491c5a815109baa3c5958..9140ceb9e4fba6a09364d4245ae483da4e0d7f53 100644
--- a/tests/standalone/left_shift_bit_and_op_test.dart
+++ b/tests/standalone/left_shift_bit_and_op_test.dart
@@ -29,19 +29,16 @@ main() {
Expect.equals(4294967296, bar(b));
}
-
checkshiftAnd32() {
Expect.equals(1572864, A.shiftAnd32(12, 17));
Expect.equals(12, A.shiftAnd32(12, 0));
Expect.equals(285212672, A.shiftAnd32(16779392, 17));
}
-
checkShiftAnd64() {
Expect.equals(1125936481173504, A.shiftAnd64(4611694814806147072, 7));
}
-
class A {
static const int MASK_32 = (1 << 30) - 1;
static const int MASK_64 = (1 << 62) - 1;
@@ -67,11 +64,17 @@ class A {
return y + x;
}
- foo(x) { return x & 0xf; }
+ foo(x) {
+ return x & 0xf;
+ }
}
-class B { foo(x) { return x; } }
+class B {
+ foo(x) {
+ return x;
+ }
+}
-bar (o) {
+bar(o) {
return o.foo(1 << 32);
}

Powered by Google App Engine
This is Rietveld 408576698