#KT-1675 Fixed, renaming join() -> makeString() and adding an appendString() which reduces the possible number of appendables being created

This commit is contained in:
James Strachan
2012-04-02 20:03:09 +01:00
parent 1d342978d0
commit f2bf17f548
4 changed files with 107 additions and 17 deletions
@@ -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));
}
}