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

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

Issue 12743005: Revert "Remove Expect from core library." (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Reupload (first upload failed). Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, 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";
6
7 class C<T> {} 5 class C<T> {}
8 6
9 sameType(a, b) { 7 sameType(a, b) {
10 Expect.equals(a.runtimeType, b.runtimeType); 8 Expect.equals(a.runtimeType, b.runtimeType);
11 } 9 }
12 10
13 differentType(a, b) { 11 differentType(a, b) {
14 Expect.isFalse(a.runtimeType == b.runtimeType); 12 Expect.isFalse(a.runtimeType == b.runtimeType);
15 } 13 }
16 14
(...skipping 18 matching lines...) Expand all
35 var l = [1, 2, 3]; 33 var l = [1, 2, 3];
36 var m = {'a': 1, 'b': 2}; 34 var m = {'a': 1, 'b': 2};
37 sameType([], l); 35 sameType([], l);
38 sameType({}, m); 36 sameType({}, m);
39 37
40 // Test parameterized lists. 38 // Test parameterized lists.
41 sameType(new List<int>(), new List<int>()); 39 sameType(new List<int>(), new List<int>());
42 differentType(new List<int>(), new List<num>()); 40 differentType(new List<int>(), new List<num>());
43 differentType(new List<int>(), new List()); 41 differentType(new List<int>(), new List());
44 } 42 }
OLDNEW
« no previous file with comments | « tests/language/first_class_types_literals_test.dart ('k') | tests/language/fixed_length_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698