| Index: tests/language_strong/rewrite_nested_if1_test.dart
|
| diff --git a/tests/language_strong/rewrite_nested_if1_test.dart b/tests/language_strong/rewrite_nested_if1_test.dart
|
| index 0a37d5643ad9f54b3ae8a484d1e01e5ad406bded..d86cc55bd43ee7bad7d9df588f46dcb8c1b679af 100644
|
| --- a/tests/language_strong/rewrite_nested_if1_test.dart
|
| +++ b/tests/language_strong/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);
|
| }
|
|
|