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

Unified Diff: tests/corelib_strong/collection_from_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_strong/collection_from_test.dart
diff --git a/tests/corelib_strong/collection_from_test.dart b/tests/corelib_strong/collection_from_test.dart
index 2766887cc84cd1d81734f83d34d7680095782f81..057d4e259ba7fbbeffc8dc33f9387168c199cfa2 100644
--- a/tests/corelib_strong/collection_from_test.dart
+++ b/tests/corelib_strong/collection_from_test.dart
@@ -3,6 +3,7 @@
// BSD-style license that can be found in the LICENSE file.
library collection.from.test;
+
import "package:expect/expect.dart";
import 'dart:collection' show Queue;
@@ -20,7 +21,6 @@ class CollectionFromTest {
check(set, new Set.from(set));
}
-
static check(Iterable initial, Iterable other) {
Expect.equals(3, initial.length);
Expect.equals(initial.length, other.length);
@@ -28,8 +28,12 @@ class CollectionFromTest {
int initialSum = 0;
int otherSum = 0;
- initial.forEach((e) { initialSum += e; });
- other.forEach((e) { otherSum += e; });
+ initial.forEach((e) {
+ initialSum += e;
+ });
+ other.forEach((e) {
+ otherSum += e;
+ });
Expect.equals(4 + 2 + 1, otherSum);
Expect.equals(otherSum, initialSum);
}

Powered by Google App Engine
This is Rietveld 408576698