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

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

Issue 12212016: Remove Expect from core library. (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
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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";
6
5 class IC { 7 class IC {
6 int count = 0; 8 int count = 0;
7 String toString() => "${count++}"; 9 String toString() => "${count++}";
8 } 10 }
9 11
10 testJoin(String expect, Iterable iterable, [String separator]) { 12 testJoin(String expect, Iterable iterable, [String separator]) {
11 Expect.equals(expect, iterable.join(separator)); 13 Expect.equals(expect, iterable.join(separator));
12 } 14 }
13 15
14 testCollections() { 16 testCollections() {
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 fixedArray[i] = i; 56 fixedArray[i] = i;
55 } 57 }
56 testArray(fixedArray); 58 testArray(fixedArray);
57 testArray(const [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]); 59 testArray(const [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]);
58 } 60 }
59 61
60 main() { 62 main() {
61 testCollections(); 63 testCollections();
62 // TODO(lrn): test scalar lists. 64 // TODO(lrn): test scalar lists.
63 } 65 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698