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

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

Issue 12212016: Remove Expect from core library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated latest tests. Created 7 years, 9 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) 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 map_test; 5 library map_test;
6 import "package:expect/expect.dart";
6 import 'dart:collection'; 7 import 'dart:collection';
7 8
8 void main() { 9 void main() {
9 test(new HashMap()); 10 test(new HashMap());
10 test(new LinkedHashMap()); 11 test(new LinkedHashMap());
11 test(new SplayTreeMap()); 12 test(new SplayTreeMap());
12 test(new SplayTreeMap(Comparable.compare)); 13 test(new SplayTreeMap(Comparable.compare));
13 testLinkedHashMap(); 14 testLinkedHashMap();
14 testMapLiteral(); 15 testMapLiteral();
15 testNullValue(); 16 testNullValue();
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
257 testMap(new LinkedHashMap<int, String>()); 258 testMap(new LinkedHashMap<int, String>());
258 testMap(new SplayTreeMap<int, String>()); 259 testMap(new SplayTreeMap<int, String>());
259 testMap(new SplayTreeMap<int, String>(Comparable.compare)); 260 testMap(new SplayTreeMap<int, String>(Comparable.compare));
260 testMap(new SplayTreeMap<int, String>((int a, int b) => a.compareTo(b))); 261 testMap(new SplayTreeMap<int, String>((int a, int b) => a.compareTo(b)));
261 testMap(new HashMap<num, String>()); 262 testMap(new HashMap<num, String>());
262 testMap(new LinkedHashMap<num, String>()); 263 testMap(new LinkedHashMap<num, String>());
263 testMap(new SplayTreeMap<num, String>()); 264 testMap(new SplayTreeMap<num, String>());
264 testMap(new SplayTreeMap<num, String>(Comparable.compare)); 265 testMap(new SplayTreeMap<num, String>(Comparable.compare));
265 testMap(new SplayTreeMap<num, String>((num a, num b) => a.compareTo(b))); 266 testMap(new SplayTreeMap<num, String>((num a, num b) => a.compareTo(b)));
266 } 267 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698