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

Unified Diff: tests/language_2/function_type/function_type52_test.dart

Issue 2998013002: Re-land "fix #30462, update function_type tests to understand covariant generics" (Closed)
Patch Set: Created 3 years, 4 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_2/function_type/function_type52_test.dart
diff --git a/tests/language_2/function_type/function_type52_test.dart b/tests/language_2/function_type/function_type52_test.dart
index 24e49c87e0d096d4e56a3e85be79352ad67b5aa6..d03a4db2d78abeac4c074268a7d6b281a9def1a8 100644
--- a/tests/language_2/function_type/function_type52_test.dart
+++ b/tests/language_2/function_type/function_type52_test.dart
@@ -193,10 +193,10 @@ class U52<T> {
});
}
if (tIsInt || tIsBool) {
- Expect.equals(tIsInt, m0 is F0<int>);
- Expect.equals(tIsBool, m0 is F0<bool>);
- Expect.equals(tIsInt, confuse(m0) is F0<int>);
- Expect.equals(tIsBool, confuse(m0) is F0<bool>);
+ Expect.equals(true, m0 is F0<int>);
+ Expect.equals(true, m0 is F0<bool>);
+ Expect.equals(true, confuse(m0) is F0<int>);
+ Expect.equals(true, confuse(m0) is F0<bool>);
}
}
@@ -340,10 +340,10 @@ class U52<T> {
});
}
if (tIsInt || tIsBool) {
- Expect.equals(tIsInt, m4 is F4<int>);
- Expect.equals(tIsBool, m4 is F4<bool>);
- Expect.equals(tIsInt, confuse(m4) is F4<int>);
- Expect.equals(tIsBool, confuse(m4) is F4<bool>);
+ Expect.equals(true, m4 is F4<int>);
+ Expect.equals(true, m4 is F4<bool>);
+ Expect.equals(true, confuse(m4) is F4<int>);
+ Expect.equals(true, confuse(m4) is F4<bool>);
}
}
« no previous file with comments | « tests/language_2/function_type/function_type51_test.dart ('k') | tests/language_2/function_type/function_type53_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698