OLD | NEW |
1 import "package:expect/expect.dart"; | 1 import "package:expect/expect.dart"; |
2 | 2 |
3 void main() { | 3 void main() { |
4 var h = "hello", w = "world"; | 4 var h = "hello", w = "world"; |
5 Expect.notEquals(h.hashCode, w.hashCode); | 5 Expect.notEquals(h.hashCode, w.hashCode); |
6 Expect.notEquals((String).hashCode, (int).hashCode); | 6 Expect.notEquals((String).hashCode, (int).hashCode); |
7 var c = h.runtimeType.hashCode; | 7 var c = h.runtimeType.hashCode; |
8 Expect.isTrue(c is int); | 8 Expect.isTrue(c is int); |
9 Expect.notEquals(c, null); | 9 Expect.notEquals(c, null); |
10 Expect.notEquals(c, 0); | 10 Expect.notEquals(c, 0); |
11 } | 11 } |
OLD | NEW |