OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
| 5 import "package:expect/expect.dart"; |
| 6 |
5 break1(int x, int y, int ew, int ez) { | 7 break1(int x, int y, int ew, int ez) { |
6 int w = 1; | 8 int w = 1; |
7 int z = 0; | 9 int z = 0; |
8 bk1: if (x == 2) { | 10 bk1: if (x == 2) { |
9 z = 1; | 11 z = 1; |
10 if (y == 3) { | 12 if (y == 3) { |
11 w = 2; | 13 w = 2; |
12 break bk1; | 14 break bk1; |
13 } else { | 15 } else { |
14 w = 3; | 16 w = 3; |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 Expect.isTrue(obscureBreaks(3), "3"); | 143 Expect.isTrue(obscureBreaks(3), "3"); |
142 Expect.isTrue(obscureBreaks(4), "4"); | 144 Expect.isTrue(obscureBreaks(4), "4"); |
143 Expect.isFalse(obscureBreaks(5), "5"); | 145 Expect.isFalse(obscureBreaks(5), "5"); |
144 Expect.equals(3, ifBreaks(1, 4)); | 146 Expect.equals(3, ifBreaks(1, 4)); |
145 Expect.equals(4, ifBreaks(1, 2)); | 147 Expect.equals(4, ifBreaks(1, 2)); |
146 Expect.equals(5, ifBreaks(1, 3)); | 148 Expect.equals(5, ifBreaks(1, 3)); |
147 Expect.equals(6, ifBreaks(2, 4)); | 149 Expect.equals(6, ifBreaks(2, 4)); |
148 Expect.equals(7, ifBreaks(2, 2)); | 150 Expect.equals(7, ifBreaks(2, 2)); |
149 Expect.equals(8, ifBreaks(2, 3)); | 151 Expect.equals(8, ifBreaks(2, 3)); |
150 } | 152 } |
OLD | NEW |