| 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 class QueueTest { | 10 class QueueTest { |
| 10 | 11 |
| 11 static testMain() { | 12 static testMain() { |
| 12 Queue queue = new Queue(); | 13 Queue queue = new Queue(); |
| 13 checkQueue(queue, 0, 0); | 14 checkQueue(queue, 0, 0); |
| 14 | 15 |
| 15 queue.addFirst(1); | 16 queue.addFirst(1); |
| 16 checkQueue(queue, 1, 1); | 17 checkQueue(queue, 1, 1); |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 entry1 = entry1.nextEntry(); | 180 entry1 = entry1.nextEntry(); |
| 180 entry2 = entry2.nextEntry(); | 181 entry2 = entry2.nextEntry(); |
| 181 } | 182 } |
| 182 Expect.equals(null, entry2); | 183 Expect.equals(null, entry2); |
| 183 } | 184 } |
| 184 } | 185 } |
| 185 | 186 |
| 186 main() { | 187 main() { |
| 187 QueueTest.testMain(); | 188 QueueTest.testMain(); |
| 188 } | 189 } |
| OLD | NEW |