| OLD | NEW |
| 1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2011, 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 | |
| 7 class ForInTest { | 5 class ForInTest { |
| 8 static testMain() { | 6 static testMain() { |
| 9 testSimple(); | 7 testSimple(); |
| 10 testBreak(); | 8 testBreak(); |
| 11 testContinue(); | 9 testContinue(); |
| 12 testClosure(); | 10 testClosure(); |
| 13 } | 11 } |
| 14 | 12 |
| 15 static Set<int> getSmallSet() { | 13 static Set<int> getSmallSet() { |
| 16 Set<int> set = new Set<int>(); | 14 Set<int> set = new Set<int>(); |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 } | 86 } |
| 89 | 87 |
| 90 Expect.equals(index, set.length); | 88 Expect.equals(index, set.length); |
| 91 Expect.equals(7, closures[0]() + closures[1]() + closures[2]()); | 89 Expect.equals(7, closures[0]() + closures[1]() + closures[2]()); |
| 92 } | 90 } |
| 93 } | 91 } |
| 94 | 92 |
| 95 main() { | 93 main() { |
| 96 ForInTest.testMain(); | 94 ForInTest.testMain(); |
| 97 } | 95 } |
| OLD | NEW |