Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(375)

Side by Side Diff: tests/corelib/queue_test.dart

Issue 12209092: Fix bug in test caught by analyzer. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 'dart:collection'; 7 import 'dart:collection';
8 8
9 abstract class QueueTest { 9 abstract class QueueTest {
10 10
11 Queue newQueue([int capacity]); 11 Queue newQueue();
12 Queue newQueueFrom(Iterable iterable); 12 Queue newQueueFrom(Iterable iterable);
13 13
14 void testMain() { 14 void testMain() {
15 Queue queue = newQueue(); 15 Queue queue = newQueue();
16 checkQueue(queue, 0, 0); 16 checkQueue(queue, 0, 0);
17 17
18 queue.addFirst(1); 18 queue.addFirst(1);
19 checkQueue(queue, 1, 1); 19 checkQueue(queue, 1, 1);
20 20
21 queue.addLast(10); 21 queue.addLast(10);
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 q.addAll(i255.skip(35).take(96)); 319 q.addAll(i255.skip(35).take(96));
320 q.addAll(i255.skip(35 + 96)); 320 q.addAll(i255.skip(35 + 96));
321 Expect.listEquals(i255.toList(), q.toList()); 321 Expect.listEquals(i255.toList(), q.toList());
322 } 322 }
323 323
324 main() { 324 main() {
325 new DoubleLinkedQueueTest().testMain(); 325 new DoubleLinkedQueueTest().testMain();
326 new ListQueueTest().testMain(); 326 new ListQueueTest().testMain();
327 trickyTest(); 327 trickyTest();
328 } 328 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698