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

Unified Diff: tests/language/optional_named_parameters_test.dart

Issue 2774783002: Re-land "Format all multitests" (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « tests/language/number_identifier_test.dart ('k') | tests/language/override_field_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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));
}
}
« no previous file with comments | « tests/language/number_identifier_test.dart ('k') | tests/language/override_field_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698