Chromium Code Reviews

Unified Diff: tests/language/ordered_maps_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.
Jump to:
View side-by-side diff with in-line comments
Index: tests/language/ordered_maps_test.dart
diff --git a/tests/language/ordered_maps_test.dart b/tests/language/ordered_maps_test.dart
index 7ea8102acf4fbf29c145aab602b388faf351eab2..27080dc869c18035475567aa44c4cfcb993ec881 100644
--- a/tests/language/ordered_maps_test.dart
+++ b/tests/language/ordered_maps_test.dart
@@ -11,7 +11,7 @@ class OrderedMapsTest {
}
static void testMaps(map1, map2, bool isConst) {
- Expect.equals(true, map1 !== map2);
+ Expect.equals(true, !identical(map1, map2));
Lasse Reichstein Nielsen 2012/11/12 13:10:41 isFalse.
floitsch 2012/11/12 22:18:43 Done.
var keys = map1.keys;
Expect.equals(2, keys.length);

Powered by Google App Engine