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

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

Issue 2983123002: Migrate test block 30 + corelib portion of block 31 to Dart 2.0. (Closed)
Patch Set: Addressed Bob's comments Created 3 years, 5 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
« no previous file with comments | « tests/corelib_2/toInt_test.dart ('k') | tests/corelib_2/unicode2_test.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 }
OLDNEW
« no previous file with comments | « tests/corelib_2/toInt_test.dart ('k') | tests/corelib_2/unicode2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698