| 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"; |
| 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 Loading... |
| 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 } |
| OLD | NEW |