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

Unified Diff: tests/lib/typed_data/typed_list_iterable_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/lib/typed_data/typed_list_iterable_test.dart
diff --git a/tests/lib/typed_data/typed_list_iterable_test.dart b/tests/lib/typed_data/typed_list_iterable_test.dart
index 787bfec7868f86712b16a8d4e9c641f12add23bf..61bfb9599cfa615d174ae29f8f5b4611f992fcba 100644
--- a/tests/lib/typed_data/typed_list_iterable_test.dart
+++ b/tests/lib/typed_data/typed_list_iterable_test.dart
@@ -78,7 +78,9 @@ void testIterableFunctions(list, first, last) {
int reduceResult = 1;
Expect.equals(list.length, list.reduce((x, y) => ++reduceResult));
} else {
- Expect.equals(first, list.reduce((x, y) { throw "should not be called"; }));
+ Expect.equals(first, list.reduce((x, y) {
+ throw "should not be called";
+ }));
}
Expect.isTrue(list.skip(list.length).isEmpty);
@@ -116,7 +118,10 @@ void emptyChecks(list) {
Expect.listEquals([], list.expand((x) => []).toList());
Expect.listEquals([], list.expand((x) => [x, x]).toList());
Expect.listEquals(
- [], list.expand((x) { throw "should not be reached"; }).toList());
+ [],
+ list.expand((x) {
+ throw "should not be reached";
+ }).toList());
Expect.listEquals([], list.fold([], (result, x) => result..add(x)));
Expect.equals(list.toList().join("*"), list.join("*"));
Expect.listEquals(list, list.map((x) => x).toList());

Powered by Google App Engine
This is Rietveld 408576698