OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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"; | 5 import "package:expect/expect.dart"; |
6 import 'dart:collection'; | 6 import 'dart:collection'; |
7 import 'package:compiler/implementation/util/setlet.dart'; | 7 import 'package:compiler/src/util/setlet.dart'; |
8 | 8 |
9 main() { | 9 main() { |
10 for (int i = 1; i <= 32; i++) { | 10 for (int i = 1; i <= 32; i++) { |
11 test(i); | 11 test(i); |
12 } | 12 } |
13 | 13 |
14 testAllLikeSet(); | 14 testAllLikeSet(); |
15 } | 15 } |
16 | 16 |
17 test(int size) { | 17 test(int size) { |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 Expect.isFalse(true, '$operationName: unexpected result type'); | 149 Expect.isFalse(true, '$operationName: unexpected result type'); |
150 } | 150 } |
151 } | 151 } |
152 | 152 |
153 checkModifications(operationName, setReceiver, setletReceiver) { | 153 checkModifications(operationName, setReceiver, setletReceiver) { |
154 Expect.equals(setReceiver.length, setletReceiver.length, | 154 Expect.equals(setReceiver.length, setletReceiver.length, |
155 '$operationName: same post-operation receiver length'); | 155 '$operationName: same post-operation receiver length'); |
156 Expect.listEquals(setReceiver.toList(), setletReceiver.toList(), | 156 Expect.listEquals(setReceiver.toList(), setletReceiver.toList(), |
157 '$operationName: same post-operation receiver contents'); | 157 '$operationName: same post-operation receiver contents'); |
158 } | 158 } |
OLD | NEW |