OLD | NEW |
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"; | 5 import "package:expect/expect.dart"; |
6 | 6 |
7 class A {} | 7 class A {} |
8 | 8 |
9 class B {} | 9 class B {} |
10 | 10 |
(...skipping 15 matching lines...) Expand all Loading... |
26 | 26 |
27 Expect.isTrue(classA.runtimeType is Type); | 27 Expect.isTrue(classA.runtimeType is Type); |
28 Expect.isTrue(classA.runtimeType == classB.runtimeType); | 28 Expect.isTrue(classA.runtimeType == classB.runtimeType); |
29 Expect.isFalse(classA.runtimeType == a.runtimeType); | 29 Expect.isFalse(classA.runtimeType == a.runtimeType); |
30 Expect.isFalse(classA.runtimeType == f.runtimeType); | 30 Expect.isFalse(classA.runtimeType == f.runtimeType); |
31 | 31 |
32 Expect.isTrue(funcType.runtimeType == classA.runtimeType); | 32 Expect.isTrue(funcType.runtimeType == classA.runtimeType); |
33 | 33 |
34 Expect.isTrue(null.runtimeType is Type); | 34 Expect.isTrue(null.runtimeType is Type); |
35 Expect.equals(Null, null.runtimeType); | 35 Expect.equals(Null, null.runtimeType); |
| 36 |
| 37 Expect.equals([].runtimeType.toString(), 'List'); |
| 38 Expect.equals((<int>[]).runtimeType.toString(), 'List<int>'); |
36 } | 39 } |
OLD | NEW |