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

Unified Diff: tests/language/method_override_test.dart

Issue 2771453003: Format all tests. (Closed)
Patch Set: Format files Created 3 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/method_override_test.dart
diff --git a/tests/language/method_override_test.dart b/tests/language/method_override_test.dart
index b1a8b1d5fde371d6f3639108a296724e9093d7e6..c5428d3e73b1161cb245388422fd03cfa07e03f7 100644
--- a/tests/language/method_override_test.dart
+++ b/tests/language/method_override_test.dart
@@ -19,12 +19,11 @@ class MapBase<K, V> implements Map<K, V> {
Expect.isTrue(remove is RemoveFunctionType);
Expect.isTrue(remove is RemoveFunctionType<int, int>);
- Expect.isTrue(remove is !RemoveFunctionType<String, int>);
- Expect.isTrue(remove is !RemoveFunctionType<MapBase<int, int>, int>);
+ Expect.isTrue(remove is! RemoveFunctionType<String, int>);
+ Expect.isTrue(remove is! RemoveFunctionType<MapBase<int, int>, int>);
}
}
-
class MethodOverrideTest extends MapBase<String, String> {
String remove(String key) {
throw 'Must be implemented';
@@ -36,14 +35,13 @@ class MethodOverrideTest extends MapBase<String, String> {
Expect.isTrue(remove is RemoveFunctionType);
Expect.isTrue(remove is RemoveFunctionType<String, String>);
- Expect.isTrue(remove is !RemoveFunctionType<int, int>);
+ Expect.isTrue(remove is! RemoveFunctionType<int, int>);
Expect.isTrue(super.remove is RemoveFunctionType);
Expect.isTrue(super.remove is RemoveFunctionType<String, String>);
- Expect.isTrue(super.remove is !RemoveFunctionType<int, int>);
+ Expect.isTrue(super.remove is! RemoveFunctionType<int, int>);
}
}
-
main() {
// Since method overriding is only checked statically, explicitly check
// the subtyping relation using a function type alias.

Powered by Google App Engine
This is Rietveld 408576698