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

Side by Side Diff: tests/corelib_2/map_from_iterable_test.dart

Issue 2990903002: Migrated test block 16 to Dart 2.0. (Closed)
Patch Set: Changed useIntegerKeys to a named parameter Created 3 years, 4 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
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 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
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 }
OLDNEW
« no previous file with comments | « tests/corelib_2/map_contains_value_test.dart ('k') | tests/corelib_2/map_from_iterables_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698