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

Unified Diff: tests/corelib/iterable_join_test.dart

Issue 12226099: Fix List.map.join with no separator. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 10 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 | « sdk/lib/_collection_dev/iterable.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/corelib/iterable_join_test.dart
diff --git a/tests/corelib/iterable_join_test.dart b/tests/corelib/iterable_join_test.dart
index 707abf1716fc8d53e90f5f821469363bbd045caf..b09227fa96a92c4fc1ef88e38a0cc9007e7214af 100644
--- a/tests/corelib/iterable_join_test.dart
+++ b/tests/corelib/iterable_join_test.dart
@@ -55,6 +55,13 @@ testCollections() {
}
testArray(fixedArray);
testArray(const [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]);
+
+ testJoin("a,b,c,d", ["a", "b", "c", "d"].map((x) => x), ",");
+ testJoin("abcd", ["a", "b", "c", "d"].map((x) => x), "");
+ testJoin("abcd", ["a", "b", "c", "d"].map((x) => x));
+ testJoin("null,b,c,d", [null,"b","c","d"].map((x) => x), ",");
+ testJoin("1,2,3,4", [1, 2, 3, 4].map((x) => x), ",");
+ testJoin("4,5,6,7", [ic, ic, ic, ic].map((x) => x), ",");
}
main() {
« no previous file with comments | « sdk/lib/_collection_dev/iterable.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698