Index: tests/language/optional_named_parameters_test.dart |
diff --git a/tests/language/optional_named_parameters_test.dart b/tests/language/optional_named_parameters_test.dart |
index 002b5391f5c0607786eb3b41d114136e0a380b05..dbb0cfc21d50f77284a429600dfaf16ade9a33e3 100644 |
--- a/tests/language/optional_named_parameters_test.dart |
+++ b/tests/language/optional_named_parameters_test.dart |
@@ -5,9 +5,7 @@ |
import "package:expect/expect.dart"; |
- |
class OptionalNamedParametersTest { |
- |
static int F00() { |
return 0; |
} |
@@ -33,27 +31,27 @@ class OptionalNamedParametersTest { |
} |
static int F21(int a, {int b: 20}) { |
- return 100*a + b; |
+ return 100 * a + b; |
} |
int f32(int a, {int b: 20}) { |
- return 100*a + b; |
+ return 100 * a + b; |
} |
static int F31(int a, {int b: 20, int c: 30}) { |
- return 100*(100*a + b) + c; |
+ return 100 * (100 * a + b) + c; |
} |
int f42(int a, {int b: 20, int c: 30}) { |
- return 100*(100*a + b) + c; |
+ return 100 * (100 * a + b) + c; |
} |
static int F41(int a, {int b: 20, int c, int d: 40}) { |
- return 100*(100*(100*a + b) + ((c != null) ? c : 0)) + d; |
+ return 100 * (100 * (100 * a + b) + ((c != null) ? c : 0)) + d; |
} |
int f52(int a, {int b: 20, int c, int d: 40}) { |
- return 100*(100*(100*a + b) + ((c != null) ? c : 0)) + d; |
+ return 100 * (100 * (100 * a + b) + ((c != null) ? c : 0)) + d; |
} |
static void test() { |
@@ -66,37 +64,37 @@ class OptionalNamedParametersTest { |
Expect.equals(20, np.f21()); |
Expect.equals(20, F10(20)); // //# 01: runtime error |
Expect.equals(20, np.f21(20)); // //# 02: runtime error |
- Expect.equals(20, F10(b:20)); |
- Expect.equals(20, np.f21(b:20)); |
+ Expect.equals(20, F10(b: 20)); |
+ Expect.equals(20, np.f21(b: 20)); |
Expect.equals(1020, F21(10)); |
Expect.equals(1020, np.f32(10)); |
Expect.equals(1025, F21(10, 25)); // //# 03: runtime error |
Expect.equals(1025, np.f32(10, 25)); // //# 04: runtime error |
- Expect.equals(1025, F21(10, b:25)); |
- Expect.equals(1025, np.f32(10, b:25)); |
+ Expect.equals(1025, F21(10, b: 25)); |
+ Expect.equals(1025, np.f32(10, b: 25)); |
Expect.equals(102030, F31(10)); |
Expect.equals(102030, np.f42(10)); |
Expect.equals(102530, F31(10, 25)); // //# 05: runtime error |
Expect.equals(102530, np.f42(10, 25)); // //# 06: runtime error |
- Expect.equals(102530, F31(10, b:25)); |
- Expect.equals(102530, np.f42(10, b:25)); |
- Expect.equals(102035, F31(10, c:35)); |
- Expect.equals(102035, np.f42(10, c:35)); |
- Expect.equals(102535, F31(10, b:25, c:35)); |
- Expect.equals(102535, np.f42(10, b:25, c:35)); |
+ Expect.equals(102530, F31(10, b: 25)); |
+ Expect.equals(102530, np.f42(10, b: 25)); |
+ Expect.equals(102035, F31(10, c: 35)); |
+ Expect.equals(102035, np.f42(10, c: 35)); |
+ Expect.equals(102535, F31(10, b: 25, c: 35)); |
+ Expect.equals(102535, np.f42(10, b: 25, c: 35)); |
Expect.equals(102535, F31(10, 25, c:35)); // //# 07: runtime error |
Expect.equals(102535, np.f42(10, 25, c:35)); // //# 08: runtime error |
- Expect.equals(102535, F31(10, c:35, b:25)); |
- Expect.equals(102535, np.f42(10, c:35, b:25)); |
+ Expect.equals(102535, F31(10, c: 35, b: 25)); |
+ Expect.equals(102535, np.f42(10, c: 35, b: 25)); |
Expect.equals(10200040, F41(10)); |
Expect.equals(10200040, np.f52(10)); |
- Expect.equals(10203540, F41(10, c:35)); |
- Expect.equals(10203540, np.f52(10, c:35)); |
- Expect.equals(10250045, F41(10, d:45, b:25)); |
+ Expect.equals(10203540, F41(10, c: 35)); |
+ Expect.equals(10203540, np.f52(10, c: 35)); |
+ Expect.equals(10250045, F41(10, d: 45, b: 25)); |
Expect.equals(10250045, F41(10, 25, d:45)); // //# 09: runtime error |
- Expect.equals(10250045, np.f52(10, d:45, b:25)); |
- Expect.equals(10253545, F41(10, d:45, c:35, b:25)); |
- Expect.equals(10253545, np.f52(10, d:45, c:35, b:25)); |
+ Expect.equals(10250045, np.f52(10, d: 45, b: 25)); |
+ Expect.equals(10253545, F41(10, d: 45, c: 35, b: 25)); |
+ Expect.equals(10253545, np.f52(10, d: 45, c: 35, b: 25)); |
} |
} |