| 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 library queue.test; | 5 library queue.test; |
| 6 | 6 |
| 7 import "package:expect/expect.dart"; |
| 7 import 'dart:collection'; | 8 import 'dart:collection'; |
| 8 | 9 |
| 9 abstract class QueueTest { | 10 abstract class QueueTest { |
| 10 | 11 |
| 11 Queue newQueue(); | 12 Queue newQueue(); |
| 12 Queue newQueueFrom(Iterable iterable); | 13 Queue newQueueFrom(Iterable iterable); |
| 13 | 14 |
| 14 void testMain() { | 15 void testMain() { |
| 15 Queue queue = newQueue(); | 16 Queue queue = newQueue(); |
| 16 checkQueue(queue, 0, 0); | 17 checkQueue(queue, 0, 0); |
| (...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 338 q.addAll(i255.skip(35).take(96)); | 339 q.addAll(i255.skip(35).take(96)); |
| 339 q.addAll(i255.skip(35 + 96)); | 340 q.addAll(i255.skip(35 + 96)); |
| 340 Expect.listEquals(i255.toList(), q.toList()); | 341 Expect.listEquals(i255.toList(), q.toList()); |
| 341 } | 342 } |
| 342 | 343 |
| 343 main() { | 344 main() { |
| 344 new DoubleLinkedQueueTest().testMain(); | 345 new DoubleLinkedQueueTest().testMain(); |
| 345 new ListQueueTest().testMain(); | 346 new ListQueueTest().testMain(); |
| 346 trickyTest(); | 347 trickyTest(); |
| 347 } | 348 } |
| OLD | NEW |