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

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

Issue 3002773002: fix #30462, update function_type tests to understand covariant generics (Closed)
Patch Set: style: use ?? false rather than == true 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_type12_test.dart
diff --git a/tests/language_2/function_type/function_type12_test.dart b/tests/language_2/function_type/function_type12_test.dart
index d5d18f23f2a87b0b0d43b19e5ce0b8ff5809ed75..2973ab956749064fecaec6ff4a2f0953f14b5f65 100644
--- a/tests/language_2/function_type/function_type12_test.dart
+++ b/tests/language_2/function_type/function_type12_test.dart
@@ -244,10 +244,10 @@ class U12<T> {
});
}
if (tIsInt || tIsBool) {
- Expect.equals(tIsInt, m2 is F2<int>);
- Expect.equals(tIsBool, m2 is F2<bool>);
- Expect.equals(tIsInt, confuse(m2) is F2<int>);
- Expect.equals(tIsBool, confuse(m2) is F2<bool>);
+ Expect.equals(true, m2 is F2<int>);
+ Expect.equals(true, m2 is F2<bool>);
+ Expect.equals(true, confuse(m2) is F2<int>);
+ Expect.equals(true, confuse(m2) is F2<bool>);
}
}
@@ -317,10 +317,10 @@ class U12<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_type10_test.dart ('k') | tests/language_2/function_type/function_type13_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698