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

Unified Diff: tests/language/src/GenericInstanceof2Test.dart

Issue 10198033: Add more subtype checks, and repeat them so that any inlined checks can be tested as well (first te… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 months 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/src/GenericInstanceof2Test.dart
===================================================================
--- tests/language/src/GenericInstanceof2Test.dart (revision 7030)
+++ tests/language/src/GenericInstanceof2Test.dart (working copy)
@@ -27,7 +27,7 @@
}
}
-main () {
+testAll () {
var foo_int_num = new Foo<int, num>();
Expect.isTrue(foo_int_num is Foo<int, num>);
Expect.isTrue(foo_int_num is !Foo<int, String>);
@@ -56,3 +56,11 @@
Expect.isTrue(moo_raw.MooString() is !Moo<int, num>);
Expect.isTrue(moo_raw.MooString() is Moo<int, String>);
}
+
+
+main() {
+ // Repeat type checks so that inlined tests can be tested as well.
regis 2012/04/26 19:02:49 Why not just testAll(); testAll(); ?
srdjan 2012/04/26 19:53:17 Discussed, leaving it to 5 for future multi-stage
+ for (int i = 0; i < 5; i++) {
+ testAll();
+ }
+}

Powered by Google App Engine
This is Rietveld 408576698