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

Unified Diff: tests/language/rewrite_conditional_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/rewrite_conditional_test.dart
diff --git a/tests/language/rewrite_conditional_test.dart b/tests/language/rewrite_conditional_test.dart
index 057c070e4a1714a1e9a192b2dc7c95f6af40d950..4e984753a3fc98a87ab46f7aacfdeec8a7877dd4 100644
--- a/tests/language/rewrite_conditional_test.dart
+++ b/tests/language/rewrite_conditional_test.dart
@@ -7,93 +7,93 @@ import 'package:expect/expect.dart';
var global = 0;
bar() {
- global += 1;
+ global += 1;
}
+
baz() {
- global += 100;
+ global += 100;
}
-foo(x,y,z) {
- if ((x ? false : true) ? y : z) {
- bar();
- bar();
- } else {
- baz();
- baz();
- }
+foo(x, y, z) {
+ if ((x ? false : true) ? y : z) {
+ bar();
+ bar();
+ } else {
+ baz();
+ baz();
+ }
}
-foo2(x,y,z) {
- return (x ? false : true) ? y : z;
+foo2(x, y, z) {
+ return (x ? false : true) ? y : z;
}
-foo3(x,y,z) {
- if (x ? (z ? false : true) : (y ? false : true)) {
- baz();
- baz();
- } else {
- bar();
- bar();
- }
+foo3(x, y, z) {
+ if (x ? (z ? false : true) : (y ? false : true)) {
+ baz();
+ baz();
+ } else {
+ bar();
+ bar();
+ }
}
-
main() {
- foo(true,true,true);
- Expect.equals(2, global);
+ foo(true, true, true);
+ Expect.equals(2, global);
- foo(true,true,false);
- Expect.equals(202, global);
+ foo(true, true, false);
+ Expect.equals(202, global);
- foo(true,false,true);
- Expect.equals(204, global);
+ foo(true, false, true);
+ Expect.equals(204, global);
- foo(true,false,false);
- Expect.equals(404, global);
+ foo(true, false, false);
+ Expect.equals(404, global);
- foo(false,true,true);
- Expect.equals(406, global);
+ foo(false, true, true);
+ Expect.equals(406, global);
- foo(false,true,false);
- Expect.equals(408, global);
+ foo(false, true, false);
+ Expect.equals(408, global);
- foo(false,false,true);
- Expect.equals(608, global);
+ foo(false, false, true);
+ Expect.equals(608, global);
- foo(false,false,false);
- Expect.equals(808, global);
+ foo(false, false, false);
+ Expect.equals(808, global);
- Expect.equals(true, foo2(true,true,true));
- Expect.equals(false, foo2(true,true,false));
- Expect.equals(true, foo2(true,false,true));
- Expect.equals(false, foo2(true,false,false));
- Expect.equals(true, foo2(false,true,true));
- Expect.equals(true, foo2(false,true,false));
- Expect.equals(false, foo2(false,false,true));
- Expect.equals(false, foo2(false,false,false));
+ Expect.equals(true, foo2(true, true, true));
+ Expect.equals(false, foo2(true, true, false));
+ Expect.equals(true, foo2(true, false, true));
+ Expect.equals(false, foo2(true, false, false));
+ Expect.equals(true, foo2(false, true, true));
+ Expect.equals(true, foo2(false, true, false));
+ Expect.equals(false, foo2(false, false, true));
+ Expect.equals(false, foo2(false, false, false));
- global = 0;
- foo3(true,true,true);
- Expect.equals(2, global);
+ global = 0;
+ foo3(true, true, true);
+ Expect.equals(2, global);
- foo3(true,true,false);
- Expect.equals(202, global);
+ foo3(true, true, false);
+ Expect.equals(202, global);
- foo3(true,false,true);
- Expect.equals(204, global);
+ foo3(true, false, true);
+ Expect.equals(204, global);
- foo3(true,false,false);
- Expect.equals(404, global);
+ foo3(true, false, false);
+ Expect.equals(404, global);
- foo3(false,true,true);
- Expect.equals(406, global);
+ foo3(false, true, true);
+ Expect.equals(406, global);
- foo3(false,true,false);
- Expect.equals(408, global);
+ foo3(false, true, false);
+ Expect.equals(408, global);
- foo3(false,false,true);
- Expect.equals(608, global);
+ foo3(false, false, true);
+ Expect.equals(608, global);
- foo3(false,false,false);
- Expect.equals(808, global);
-}
+ foo3(false, false, false);
+ Expect.equals(808, global);
+}

Powered by Google App Engine
This is Rietveld 408576698