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

Unified Diff: tests/html/xmldocument_test.dart

Issue 11412086: Make 'where' lazy. (Closed) Base URL: https://dart.googlecode.com/svn/experimental/lib_v2/dart
Patch Set: FilteredIterable/Iterator -> WhereIterable/Iterator. Created 8 years, 1 month 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/html/xmldocument_test.dart
diff --git a/tests/html/xmldocument_test.dart b/tests/html/xmldocument_test.dart
index d9afa92a665e062eb0e7af5e8b7f676eba25c108..a6aa6aa12cb84f325b702af4ab4f4e3ac1de8bfc 100644
--- a/tests/html/xmldocument_test.dart
+++ b/tests/html/xmldocument_test.dart
@@ -102,13 +102,13 @@ main() {
expect(classes, unorderedEquals(['foo', 'bar', 'baz']));
});
- test('map', () {
+ test('mappedBy', () {
expect(makeClassSet().mappedBy((c) => c.toUpperCase()).toList(),
unorderedEquals(['FOO', 'BAR', 'BAZ']));
});
- test('filter', () {
- expect(makeClassSet().where((c) => c.contains('a')),
+ test('where', () {
+ expect(makeClassSet().where((c) => c.contains('a')).toSet(),
unorderedEquals(['bar', 'baz']));
});

Powered by Google App Engine
This is Rietveld 408576698