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

Unified Diff: tests/language/first_class_types_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/first_class_types_literals_test.dart ('k') | tests/language/function_syntax_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/language/first_class_types_test.dart
diff --git a/tests/language/first_class_types_test.dart b/tests/language/first_class_types_test.dart
index 5db1e5462bf99418153c8fa088197115381c6715..419dbbbc1d2975ab1ffa1f4ce311bc83c6306814 100644
--- a/tests/language/first_class_types_test.dart
+++ b/tests/language/first_class_types_test.dart
@@ -5,13 +5,11 @@
class C<T> {}
sameType(a, b) {
- Expect.identical(a.runtimeType, b.runtimeType);
+ Expect.equals(a.runtimeType, b.runtimeType);
}
differentType(a, b) {
- print("a: ${a.runtimeType}");
- print("b: ${b.runtimeType}");
- Expect.isFalse(a.runtimeType === b.runtimeType);
+ Expect.isFalse(a.runtimeType == b.runtimeType);
}
main() {
« no previous file with comments | « tests/language/first_class_types_literals_test.dart ('k') | tests/language/function_syntax_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698