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

Unified Diff: tests/language/canonical_const2_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/canonical_const2_test.dart
diff --git a/tests/language/canonical_const2_test.dart b/tests/language/canonical_const2_test.dart
index 02fb11e215b4ea3cc862c35f43dd4d506abb622c..8d2c89638ca664efe835d98e07c8e12b7e23b319 100644
--- a/tests/language/canonical_const2_test.dart
+++ b/tests/language/canonical_const2_test.dart
@@ -5,5 +5,5 @@
// Check that compile-time constants are correctly canonicalized.
main() {
- Expect.isTrue(const <num>[1,2] !== const <num>[1.0,2.0]);
+ Expect.isTrue(!identical(const <num>[1,2], const <num>[1.0,2.0]));
Lasse Reichstein Nielsen 2012/11/12 13:10:41 isFalse(identical
floitsch 2012/11/12 22:18:43 Done.
}

Powered by Google App Engine
This is Rietveld 408576698