| 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 class CollectionTest { | 5 class CollectionTest { |
| 6 CollectionTest(Collection collection) { | 6 CollectionTest(Collection collection) { |
| 7 testReduce(collection); | 7 testReduce(collection); |
| 8 } | 8 } |
| 9 | 9 |
| 10 void testReduce(Collection collection) { | 10 void testReduce(Collection collection) { |
| (...skipping 14 matching lines...) Expand all Loading... |
| 25 for (int i = 0; i < TEST_ELEMENTS.length; i++) { | 25 for (int i = 0; i < TEST_ELEMENTS.length; i++) { |
| 26 fixedList[i] = TEST_ELEMENTS[i]; | 26 fixedList[i] = TEST_ELEMENTS[i]; |
| 27 } | 27 } |
| 28 new CollectionTest(fixedList); | 28 new CollectionTest(fixedList); |
| 29 | 29 |
| 30 // Dynamic size list. | 30 // Dynamic size list. |
| 31 new CollectionTest(new List.from(TEST_ELEMENTS)); | 31 new CollectionTest(new List.from(TEST_ELEMENTS)); |
| 32 | 32 |
| 33 // Dynamic size set. | 33 // Dynamic size set. |
| 34 new CollectionTest(new Set.from(TEST_ELEMENTS)); | 34 new CollectionTest(new Set.from(TEST_ELEMENTS)); |
| 35 |
| 36 // Queue. |
| 37 new CollectionTest(new Queue.from(TEST_ELEMENTS)); |
| 35 } | 38 } |
| OLD | NEW |