Index: tests/corelib/iterable_join_test.dart |
diff --git a/tests/corelib/iterable_join_test.dart b/tests/corelib/iterable_join_test.dart |
index c47f782ee68c501b148bf47ae517b8f27b00b224..e374be441c90f5fb391df124ddc3ff5597ae775a 100644 |
--- a/tests/corelib/iterable_join_test.dart |
+++ b/tests/corelib/iterable_join_test.dart |
@@ -9,8 +9,12 @@ class IC { |
String toString() => "${count++}"; |
} |
-testJoin(String expect, Iterable iterable, [String separator]) { |
- Expect.equals(expect, iterable.join(separator)); |
+testJoin(String expect, Iterable iterable, [String separator = ""]) { |
+ if (?separator) { |
+ Expect.equals(expect, iterable.join(separator)); |
+ } else { |
+ Expect.equals(expect, iterable.join()); |
+ } |
} |
testCollections() { |