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

Unified Diff: tests/corelib_strong/list_map_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/list_map_test.dart
diff --git a/tests/corelib_strong/list_map_test.dart b/tests/corelib_strong/list_map_test.dart
index 4addcc7e19689b822d9505af5cd83fea4358350b..c62ec5d7a1d3deaa55c9e4f1e943602151077b75 100644
--- a/tests/corelib_strong/list_map_test.dart
+++ b/tests/corelib_strong/list_map_test.dart
@@ -49,7 +49,6 @@ void testOperations() {
Expect.listEquals(subr,
reversed.skip(2).toList().reversed.skip(2).toList().reversed.toList());
-
void testList(List list) {
var throws = const ThrowMarker();
var mappedList = new List<int>(list.length);
@@ -70,8 +69,8 @@ void testOperations() {
index++;
}
if (i2.moveNext()) {
- Expect.fail(
- "Too many actual values. Actual[$index] == ${i2.current}");
+ Expect
+ .fail("Too many actual values. Actual[$index] == ${i2.current}");
}
} else {
Expect.equals(v1, v2, path);
@@ -93,6 +92,7 @@ void testOperations() {
}
testEquals(expect, actual, "$name: $list");
}
+
testOp((i) => i.first, "first");
testOp((i) => i.last, "last");
testOp((i) => i.single, "single");

Powered by Google App Engine
This is Rietveld 408576698