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

Unified Diff: tests/language/compile_time_constant_a_test.dart

Issue 11361190: a === b -> identical(a, b) (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. Created 8 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/language/compile_time_constant9_test.dart ('k') | tests/language/const_locals_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/compile_time_constant_a_test.dart
diff --git a/tests/language/compile_time_constant_a_test.dart b/tests/language/compile_time_constant_a_test.dart
index 1d32b374abb7d410496f5d7e1787d169ab7d7584..254106497a86c1fcbf9752428c425fdc117f6426 100644
--- a/tests/language/compile_time_constant_a_test.dart
+++ b/tests/language/compile_time_constant_a_test.dart
@@ -73,8 +73,8 @@ main() {
Expect.throws(() => m2.putIfAbsent('z', () => 499), isUnsupportedError);
Expect.throws(() => m2['a'] = 499, isUnsupportedError);
- Expect.isTrue(m3['m1'] === m1);
- Expect.isTrue(m3['m2'] === m2);
+ Expect.identical(m3['m1'], m1);
+ Expect.identical(m3['m2'], m2);
Expect.listEquals(['z', 'a', 'm'], m4.keys);
Expect.listEquals([9, 8, 7], m4.values);
@@ -91,7 +91,7 @@ main() {
Expect.isTrue(m5.containsKey(''));
Expect.equals(1, m5.length);
- Expect.isTrue(m1 === m6);
+ Expect.identical(m1, m6);
Expect.isTrue(m7.isEmpty);
Expect.equals(0, m7.length);
« no previous file with comments | « tests/language/compile_time_constant9_test.dart ('k') | tests/language/const_locals_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698