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

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: 80chars. 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
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..27a3f6580452de479f0a40b4a8df97f3aeb817a9 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.isTrue(identical(m3['m1'], m1));
Lasse Reichstein Nielsen 2012/11/12 13:10:41 Expect.identical
floitsch 2012/11/12 22:18:43 Done.
+ Expect.isTrue(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.isTrue(identical(m1, m6));
Expect.isTrue(m7.isEmpty);
Expect.equals(0, m7.length);

Powered by Google App Engine
This is Rietveld 408576698