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

Unified Diff: tests/corelib/iterable_to_list_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/corelib/iterable_return_type_test.dart ('k') | tests/corelib/list_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/iterable_to_list_test.dart
diff --git a/tests/corelib/iterable_to_list_test.dart b/tests/corelib/iterable_to_list_test.dart
index 63ec15764fdcea8b51967c7bbc73cb2daec04d55..d81297820aa22a25064b90f94247d5900ea03404 100644
--- a/tests/corelib/iterable_to_list_test.dart
+++ b/tests/corelib/iterable_to_list_test.dart
@@ -22,8 +22,8 @@ main() {
testIterable(<String, int>{"x": 2, "y": 3}.values, <int>[2, 3]);
testIterable(new Iterable.generate(3), [0, 1, 2]);
testIterable(new Iterable<int>.generate(3), <int>[0, 1, 2]);
- testIterable(new Iterable<String>.generate(3, (x)=>"$x"),
- <String>["0", "1", "2"]);
+ testIterable(
+ new Iterable<String>.generate(3, (x) => "$x"), <String>["0", "1", "2"]);
testIterable(new Set.from([1, 2, 3]), [1, 2, 3]);
testIterable(new Set<int>.from([1, 2, 3]), <int>[1, 2, 3]);
testIterable(new Queue.from([1, 2, 3]), [1, 2, 3]);
@@ -55,7 +55,7 @@ testIterable(Iterable iterable, List expected, [int depth = 0]) {
}
}
-test(Iterable iterable, List expected, { bool growable: true}) {
+test(Iterable iterable, List expected, {bool growable: true}) {
var list = iterable.toList(growable: growable);
Expect.listEquals(expected, list);
Expect.equals(expected is List<int>, list is List<int>, "int");
@@ -66,6 +66,8 @@ test(Iterable iterable, List expected, { bool growable: true}) {
list.add(null);
Expect.equals(length + 1, list.length);
} else {
- Expect.throws(() { list.add(null); });
+ Expect.throws(() {
+ list.add(null);
+ });
}
}
« no previous file with comments | « tests/corelib/iterable_return_type_test.dart ('k') | tests/corelib/list_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698