Index: tests/language_strong/method_override5_test.dart |
diff --git a/tests/language_strong/method_override5_test.dart b/tests/language_strong/method_override5_test.dart |
index efbc5a1c4f221f69134573a2efdd38d68ada6d1c..1a79801046990c11c783edbf72168c249e6b6a79 100644 |
--- a/tests/language_strong/method_override5_test.dart |
+++ b/tests/language_strong/method_override5_test.dart |
@@ -5,31 +5,32 @@ |
import 'package:expect/expect.dart'; |
class A { |
- foo(required1, { named1: 499}) => -(required1 + named1 * 3); |
- bar(required1, required2, { named1: 13, named2: 17}) |
- => -(required1 + required2 * 3 + named1 * 5 + named2 * 7); |
+ foo(required1, {named1: 499}) => -(required1 + named1 * 3); |
+ bar(required1, required2, {named1: 13, named2: 17}) => |
+ -(required1 + required2 * 3 + named1 * 5 + named2 * 7); |
gee({named1: 31}) => -named1; |
} |
class B extends A { |
foo(required1) => required1; |
- bar(required1, required2, { named1: 29 }) |
- => required1 + required2 * 3 + named1 * 5; |
+ bar(required1, required2, {named1: 29}) => |
+ required1 + required2 * 3 + named1 * 5; |
gee({named2: 11}) => named2 * 99; |
} |
main() { |
// Invoke all A methods so that they are registered. |
var a = new A(); |
- Expect.equals(-2092, |
- a.foo(499, named1: 88) + a.bar(1, 2, named1: 3, named2: 88) + |
- a.bar(1, 2, named2: 88) + a.gee(named1: 3)); |
+ Expect.equals( |
+ -2092, |
+ a.foo(499, named1: 88) + |
+ a.bar(1, 2, named1: 3, named2: 88) + |
+ a.bar(1, 2, named2: 88) + |
+ a.gee(named1: 3)); |
var b = new B(); |
Expect.throws(() => b.foo(499, named1: 88), (e) => e is NoSuchMethodError); |
- Expect.throws(() => b.bar(1, 2, named1: 3, named2: 88), |
- (e) => e is NoSuchMethodError); |
- Expect.throws(() => b.bar(1, 2, named2: 88), |
- (e) => e is NoSuchMethodError); |
- Expect.throws(() => b.gee(named1: 3), |
- (e) => e is NoSuchMethodError); |
-} |
+ Expect.throws( |
+ () => b.bar(1, 2, named1: 3, named2: 88), (e) => e is NoSuchMethodError); |
+ Expect.throws(() => b.bar(1, 2, named2: 88), (e) => e is NoSuchMethodError); |
+ Expect.throws(() => b.gee(named1: 3), (e) => e is NoSuchMethodError); |
+} |