Index: tests/language_strong/function_literals_test.dart |
diff --git a/tests/language_strong/function_literals_test.dart b/tests/language_strong/function_literals_test.dart |
index 92c2ee2ca7718eb16f8e2e8673408b8090a0ae47..40dc333ea4698f2b350ee6a2d5cfe09c7c1ce369 100644 |
--- a/tests/language_strong/function_literals_test.dart |
+++ b/tests/language_strong/function_literals_test.dart |
@@ -49,30 +49,56 @@ class FunctionLiteralsTest { |
} |
void testArrowArrow() { |
- checkIntFuncFunction(84, (x) => (y) => x+y, 42); |
- checkIntFuncFunction(84, (int x) => (y) => x+y, 42); |
- checkIntFuncFunction(84, (x) => (y) => x+y, 42); |
- checkIntFuncFunction(84, (int x) => (y) => x+y, 42); |
+ checkIntFuncFunction(84, (x) => (y) => x + y, 42); |
+ checkIntFuncFunction(84, (int x) => (y) => x + y, 42); |
+ checkIntFuncFunction(84, (x) => (y) => x + y, 42); |
+ checkIntFuncFunction(84, (int x) => (y) => x + y, 42); |
} |
void testArrowBlock() { |
- checkIntFuncFunction(84, (x) => (y) { return x+y; }, 42); |
- checkIntFuncFunction(84, (int x) => (y) { return x+y; }, 42); |
+ checkIntFuncFunction( |
+ 84, |
+ (x) => (y) { |
+ return x + y; |
+ }, |
+ 42); |
+ checkIntFuncFunction( |
+ 84, |
+ (int x) => (y) { |
+ return x + y; |
+ }, |
+ 42); |
} |
void testBlock() { |
- checkIntFunction(42, (x) { return x; }, 42); |
- checkIntFunction(42, (int x) { return x; }, 42); |
+ checkIntFunction(42, (x) { |
+ return x; |
+ }, 42); |
+ checkIntFunction(42, (int x) { |
+ return x; |
+ }, 42); |
} |
void testBlockArrow() { |
- checkIntFuncFunction(84, (x) { return (y) => x+y; }, 42); |
- checkIntFuncFunction(84, (int x) { return (y) => x+y; }, 42); |
+ checkIntFuncFunction(84, (x) { |
+ return (y) => x + y; |
+ }, 42); |
+ checkIntFuncFunction(84, (int x) { |
+ return (y) => x + y; |
+ }, 42); |
} |
void testBlockBlock() { |
- checkIntFuncFunction(84, (x) { return (y) { return x+y; }; }, 42); |
- checkIntFuncFunction(84, (int x) { return (y) { return x+y; }; }, 42); |
+ checkIntFuncFunction(84, (x) { |
+ return (y) { |
+ return x + y; |
+ }; |
+ }, 42); |
+ checkIntFuncFunction(84, (int x) { |
+ return (y) { |
+ return x + y; |
+ }; |
+ }, 42); |
} |
void testFunctionRef() { |
@@ -83,7 +109,6 @@ class FunctionLiteralsTest { |
} |
} |
- |
main() { |
FunctionLiteralsTest.testMain(); |
} |