| 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 import "package:expect/expect.dart"; | 5 import "package:expect/expect.dart"; |
| 6 import 'dart:collection'; | 6 import 'dart:collection'; |
| 7 | 7 |
| 8 main() { | 8 main() { |
| 9 defaultFunctionValuesTest(); | 9 defaultFunctionValuesTest(); |
| 10 defaultKeyFunctionTest(); | 10 defaultKeyFunctionTest(); |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 | 102 |
| 103 void genericTypeTest() { | 103 void genericTypeTest() { |
| 104 var map = new HashMap<String, String>.fromIterable(<int>[1, 2, 3], | 104 var map = new HashMap<String, String>.fromIterable(<int>[1, 2, 3], |
| 105 key: (x) => '$x', value: (x) => '$x'); | 105 key: (x) => '$x', value: (x) => '$x'); |
| 106 Expect.isTrue(map is Map<String, String>); | 106 Expect.isTrue(map is Map<String, String>); |
| 107 | 107 |
| 108 // Make sure it is not just Map<dynamic, dynamic>. | 108 // Make sure it is not just Map<dynamic, dynamic>. |
| 109 Expect.isFalse(map is Map<int, dynamic>); | 109 Expect.isFalse(map is Map<int, dynamic>); |
| 110 Expect.isFalse(map is Map<dynamic, int>); | 110 Expect.isFalse(map is Map<dynamic, int>); |
| 111 } | 111 } |
| OLD | NEW |