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

Unified Diff: tests/lib/async/stream_controller_async_test.dart

Issue 14071002: Added new version of reduce. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Removed more uses of max, and a few bugs. Created 7 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/async/stream_controller_async_test.dart
diff --git a/tests/lib/async/stream_controller_async_test.dart b/tests/lib/async/stream_controller_async_test.dart
index 877d046b8a2e1691150d9cbac7a7a5cdc54620d7..10a18c49ac72c1a99eadf01cc4d10f0487b84fe6 100644
--- a/tests/lib/async/stream_controller_async_test.dart
+++ b/tests/lib/async/stream_controller_async_test.dart
@@ -432,7 +432,7 @@ testRethrow() {
Future f = streamValueTransform(c.stream, (v) { throw error; });
f.then((v) { Expect.fail("unreachable"); },
onError: expectAsync1((e) { Expect.identical(error, e); }));
- // Need two values to trigger compare for min/max.
+ // Need two values to trigger compare for reduce.
c.add(0);
c.add(1);
c.close();
@@ -447,9 +447,7 @@ testRethrow() {
testStreamError("handleTest", (s, act) => s.handleError((v) {}, test: act));
testFuture("every", (s, act) => s.every(act));
testFuture("any", (s, act) => s.any(act));
- testFuture("min", (s, act) => s.min((a, b) => act(b)));
- testFuture("max", (s, act) => s.max((a, b) => act(b)));
- testFuture("reduce", (s, act) => s.reduce(0, (a,b) => act(b)));
+ testFuture("reduce", (s, act) => s.reduce((a,b) => act(b)));
testFuture("fold", (s, act) => s.fold(0, (a,b) => act(b)));
}

Powered by Google App Engine
This is Rietveld 408576698