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

Unified Diff: tests/corelib/iterable_expand_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/corelib/iterable_expand_test.dart
diff --git a/tests/corelib/iterable_expand_test.dart b/tests/corelib/iterable_expand_test.dart
index 9c60541f2f41523200972ef83f8ecd1337e06204..a02787a61089713ef993eb717c1361bff3c1054b 100644
--- a/tests/corelib/iterable_expand_test.dart
+++ b/tests/corelib/iterable_expand_test.dart
@@ -10,7 +10,9 @@ class MyList extends ListBase {
MyList(this.list);
get length => list.length;
- set length(val) { list.length = val; }
+ set length(val) {
+ list.length = val;
+ }
operator [](index) => list[index];
operator []=(index, val) => list[index] = val;
@@ -18,17 +20,22 @@ class MyList extends ListBase {
String toString() => "[" + join(", ") + "]";
}
-
main() {
test(expectation, iterable) {
Expect.listEquals(expectation, iterable.toList());
}
// Function not called on empty iterable.
- test([], [].expand((x) { throw "not called"; }));
+ test(
+ [],
+ [].expand((x) {
+ throw "not called";
+ }));
// Creating the iterable doesn't call the function.
- [1].expand((x) { throw "not called"; });
+ [1].expand((x) {
+ throw "not called";
+ });
test([1], [1].expand((x) => [x]));
test([1, 2, 3], [1, 2, 3].expand((x) => [x]));

Powered by Google App Engine
This is Rietveld 408576698