#KT-1675 Fixed, renaming join() -> makeString() and adding an appendString() which reduces the possible number of appendables being created
This commit is contained in:
@@ -17,7 +17,7 @@ public class CollectionTest extends TestCase {
|
||||
public void testCollections() throws Exception {
|
||||
List<String> list = arrayList("foo", "bar");
|
||||
|
||||
String text = makeString(list, ",", "(", ")");
|
||||
String text = makeString(list, ",", "(", ")", -1);
|
||||
System.out.println("Have text: " + text);
|
||||
assertEquals("(foo,bar)", text);
|
||||
|
||||
@@ -29,6 +29,6 @@ public class CollectionTest extends TestCase {
|
||||
});
|
||||
|
||||
System.out.println("Filtered list is " + actual);
|
||||
assertEquals("(bar)", makeString(actual, ",", "(", ")"));
|
||||
assertEquals("(bar)", makeString(actual, ",", "(", ")", -1));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user