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

Unified Diff: tests/language/rewrite_nested_if1_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/rewrite_nested_if1_test.dart
diff --git a/tests/language/rewrite_nested_if1_test.dart b/tests/language/rewrite_nested_if1_test.dart
index 0a37d5643ad9f54b3ae8a484d1e01e5ad406bded..d86cc55bd43ee7bad7d9df588f46dcb8c1b679af 100644
--- a/tests/language/rewrite_nested_if1_test.dart
+++ b/tests/language/rewrite_nested_if1_test.dart
@@ -19,9 +19,7 @@ check_true_true(x, y, v) {
}
check_false_true(x, y, v) {
- if (x) {
-
- } else {
+ if (x) {} else {
if (y) {
setGlobal(v);
}
@@ -30,53 +28,46 @@ check_false_true(x, y, v) {
check_true_false(x, y, v) {
if (x) {
- if (y) {
-
- } else {
+ if (y) {} else {
setGlobal(v);
}
}
}
check_false_false(x, y, v) {
- if (x) {
-
- } else {
- if (y) {
-
- } else {
+ if (x) {} else {
+ if (y) {} else {
setGlobal(v);
}
}
}
-
main() {
- check_true_true(true, true, 4);
+ check_true_true(true, true, 4);
check_true_true(false, false, 1);
- check_true_true(false, true, 2);
- check_true_true(true, false, 3);
+ check_true_true(false, true, 2);
+ check_true_true(true, false, 3);
Expect.equals(4, global);
check_true_false(false, false, 1);
- check_true_false(false, true, 2);
- check_true_false(true, false, 3);
- check_true_false(true, true, 4);
+ check_true_false(false, true, 2);
+ check_true_false(true, false, 3);
+ check_true_false(true, true, 4);
Expect.equals(3, global);
check_false_true(false, false, 1);
- check_false_true(false, true, 2);
- check_false_true(true, false, 3);
- check_false_true(true, true, 4);
+ check_false_true(false, true, 2);
+ check_false_true(true, false, 3);
+ check_false_true(true, true, 4);
Expect.equals(2, global);
check_false_false(false, false, 1);
- check_false_false(false, true, 2);
- check_false_false(true, false, 3);
- check_false_false(true, true, 4);
+ check_false_false(false, true, 2);
+ check_false_false(true, false, 3);
+ check_false_false(true, true, 4);
Expect.equals(1, global);
}

Powered by Google App Engine
This is Rietveld 408576698