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

Side by Side Diff: tests/language/map_literal7_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 years, 8 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) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, 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 // Test the use type arguments on constant maps. 5 // Test the use type arguments on constant maps.
6 6
7 library map_literal7_test; 7 library map_literal7_test;
8 8
9 import "package:expect/expect.dart"; 9 import "package:expect/expect.dart";
10 10
11 void main() { 11 void main() {
12 var m1 = const {"0": 0, "1": 1}; 12 var m1 = const {"0": 0, "1": 1};
13 Expect.isTrue(m1 is Map); 13 Expect.isTrue(m1 is Map);
14 Expect.isTrue(m1 is Map<String,int>); 14 Expect.isTrue(m1 is Map<String, int>);
15 Expect.isTrue(m1 is Map<int,dynamic>); 15 Expect.isTrue(m1 is Map<int, dynamic>);
16 Expect.isTrue(m1 is Map<dynamic,String>); 16 Expect.isTrue(m1 is Map<dynamic, String>);
17 17
18 var m2 = const <String,int>{"0": 0, "1": 1}; 18 var m2 = const <String, int>{"0": 0, "1": 1};
19 Expect.isTrue(m2 is Map); 19 Expect.isTrue(m2 is Map);
20 Expect.isTrue(m2 is Map<String,int>); 20 Expect.isTrue(m2 is Map<String, int>);
21 Expect.isFalse(m2 is Map<int,dynamic>); 21 Expect.isFalse(m2 is Map<int, dynamic>);
22 Expect.isFalse(m2 is Map<dynamic,String>); 22 Expect.isFalse(m2 is Map<dynamic, String>);
23 } 23 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698