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

Unified Diff: tests/language/first_class_types_literals_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/finally_test.dart ('k') | tests/language/first_class_types_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_literals_test.dart
diff --git a/tests/language/first_class_types_literals_test.dart b/tests/language/first_class_types_literals_test.dart
index 9e8093f4d482d230dac875d4d06f074c57072cc1..360564e2da7ce405f9298b1fc8a3ebb15caf455f 100644
--- a/tests/language/first_class_types_literals_test.dart
+++ b/tests/language/first_class_types_literals_test.dart
@@ -12,16 +12,10 @@ sameType(a, b) {
Expect.identical(a.runtimeType, b.runtimeType);
}
-differentType(a, b) {
- print("a: ${a.runtimeType}");
- print("b: ${b.runtimeType}");
- Expect.isFalse(a.runtimeType === b.runtimeType);
-}
-
main() {
// Test type literals.
Expect.identical(int, int);
- Expect.isFalse(int === num);
+ Expect.isFalse(identical(int, num));
Expect.identical(Foo, Foo);
// Test that class literals return instances of Type.
« no previous file with comments | « tests/language/finally_test.dart ('k') | tests/language/first_class_types_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698