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

Unified Diff: pkg/intl/test/date_time_format_test_core.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
« no previous file with comments | « no previous file | pkg/unittest/lib/html_enhanced_config.dart » ('j') | runtime/lib/array.dart » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/intl/test/date_time_format_test_core.dart
diff --git a/pkg/intl/test/date_time_format_test_core.dart b/pkg/intl/test/date_time_format_test_core.dart
index 4e92fb648235c887c84b19525702086080e52a50..9ba522c1d2c357e6b8aa28fe7470c910d819064c 100644
--- a/pkg/intl/test/date_time_format_test_core.dart
+++ b/pkg/intl/test/date_time_format_test_core.dart
@@ -177,7 +177,7 @@ List<String> allLocales() => DateFormat.allLocalesWithSymbols();
*/
List oddLocales() {
int i = 1;
- return allLocales().where((x) => (i++).isOdd);
+ return allLocales().where((x) => (i++).isOdd).toList();
}
/**
@@ -193,7 +193,7 @@ List smallSetOfLocales() {
*/
List evenLocales() {
int i = 1;
- return allLocales().where((x) => !((i++).isOdd));
+ return allLocales().where((x) => !((i++).isOdd)).toList();
}
// TODO(alanknight): Run specific tests for the en_ISO locale which isn't
« no previous file with comments | « no previous file | pkg/unittest/lib/html_enhanced_config.dart » ('j') | runtime/lib/array.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698