improved the docs and test cases

This commit is contained in:
James Strachan
2012-04-03 17:55:14 +01:00
parent 5df7258708
commit 5155b858d7
2 changed files with 15 additions and 5 deletions
+4
View File
@@ -236,6 +236,10 @@ class CollectionTest {
val data = arrayList("foo", "bar")
val text = data.makeString("-", "<", ">")
assertEquals("<foo-bar>", text)
val big = arrayList("a", "b", "c", "d" , "e", "f")
val text2 = big.makeString(limit = 3, truncated = "*")
assertEquals("a, b, c, *", text2)
}
/*