| 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 map_test; | 5 library map_test; |
| 6 import "package:expect/expect.dart"; | |
| 7 import 'dart:collection'; | 6 import 'dart:collection'; |
| 8 | 7 |
| 9 void main() { | 8 void main() { |
| 10 test(new HashMap()); | 9 test(new HashMap()); |
| 11 test(new LinkedHashMap()); | 10 test(new LinkedHashMap()); |
| 12 test(new SplayTreeMap()); | 11 test(new SplayTreeMap()); |
| 13 test(new SplayTreeMap(Comparable.compare)); | 12 test(new SplayTreeMap(Comparable.compare)); |
| 14 testLinkedHashMap(); | 13 testLinkedHashMap(); |
| 15 testMapLiteral(); | 14 testMapLiteral(); |
| 16 testNullValue(); | 15 testNullValue(); |
| (...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 testMap(new LinkedHashMap<int, String>()); | 257 testMap(new LinkedHashMap<int, String>()); |
| 259 testMap(new SplayTreeMap<int, String>()); | 258 testMap(new SplayTreeMap<int, String>()); |
| 260 testMap(new SplayTreeMap<int, String>(Comparable.compare)); | 259 testMap(new SplayTreeMap<int, String>(Comparable.compare)); |
| 261 testMap(new SplayTreeMap<int, String>((int a, int b) => a.compareTo(b))); | 260 testMap(new SplayTreeMap<int, String>((int a, int b) => a.compareTo(b))); |
| 262 testMap(new HashMap<num, String>()); | 261 testMap(new HashMap<num, String>()); |
| 263 testMap(new LinkedHashMap<num, String>()); | 262 testMap(new LinkedHashMap<num, String>()); |
| 264 testMap(new SplayTreeMap<num, String>()); | 263 testMap(new SplayTreeMap<num, String>()); |
| 265 testMap(new SplayTreeMap<num, String>(Comparable.compare)); | 264 testMap(new SplayTreeMap<num, String>(Comparable.compare)); |
| 266 testMap(new SplayTreeMap<num, String>((num a, num b) => a.compareTo(b))); | 265 testMap(new SplayTreeMap<num, String>((num a, num b) => a.compareTo(b))); |
| 267 } | 266 } |
| OLD | NEW |