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

Unified Diff: tests/language/constant_fold_equals_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/const_string_test.dart ('k') | tests/language/ct_const2_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/constant_fold_equals_test.dart
diff --git a/tests/language/constant_fold_equals_test.dart b/tests/language/constant_fold_equals_test.dart
index 7cf14e20e031c75752a0f1c347df581e9a2ffb96..b69c1e7c4c6fcfdc9c54db374ba028fade870bbc 100644
--- a/tests/language/constant_fold_equals_test.dart
+++ b/tests/language/constant_fold_equals_test.dart
@@ -6,9 +6,9 @@ main() {
var a = 'foo';
for (int i = 0; i < 10; i++) {
if (i == 0) {
- Expect.isTrue(a === 'foo');
+ Expect.isTrue(identical(a, 'foo'));
} else {
- Expect.isTrue(a === 2);
+ Expect.isTrue(a == 2);
}
a = 2;
}
« no previous file with comments | « tests/language/const_string_test.dart ('k') | tests/language/ct_const2_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698