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

Unified Diff: tests/html/streams_test.dart

Issue 13548002: Add Iterable.fold (and Stream.fold) which replace `reduce`. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Address comments. 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
« no previous file with comments | « tests/corelib/list_reversed_test.dart ('k') | tests/lib/async/stream_controller_async_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/html/streams_test.dart
diff --git a/tests/html/streams_test.dart b/tests/html/streams_test.dart
index 266edc8146d35799b98366f3f019ee8edb94f314..3d3f16c46962b70a99daff17c268c8e1f21023fd 100644
--- a/tests/html/streams_test.dart
+++ b/tests/html/streams_test.dart
@@ -194,6 +194,10 @@ main() {
stream.reduce(null, (a, b) => null).then((_) {});
});
+ test('fold', () {
+ stream.fold(null, (a, b) => null).then((_) {});
+ });
+
test('contains', () {
stream.contains((_) => true).then((_) {});
});
« no previous file with comments | « tests/corelib/list_reversed_test.dart ('k') | tests/lib/async/stream_controller_async_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698