String <-> CharArray conversion, ArrayBuilder by @elizarov (#98)

This commit is contained in:
Nikolay Igotti
2016-11-30 13:06:36 +03:00
committed by GitHub
parent badecf8210
commit d4fda3bfe2
11 changed files with 236 additions and 15 deletions
@@ -182,6 +182,12 @@ fun testToString() {
assertTrue(a.toString() == makeList123().toString())
}
fun testToString2() {
val a = makeList123()
assertEquals(a.toString(), "[1, 2, 3]")
}
fun testSubList() {
val a0 = makeList01234()
val a = a0.subList(1, 4)
@@ -271,11 +277,12 @@ fun testIteratorAdd() {
val next = it.next()
if (i++ % 2 == 0)
it.add("-" + next)
it.next()
}
//assertEquals(listOf("1", "2", "-2", "3", "4", "-4", "5"), a)
}
fun main(args : Array<String>) {
testBasic()
testIterator()
@@ -286,6 +293,7 @@ fun main(args : Array<String>) {
testEquals()
testHashCode()
testToString()
testToString2()
testSubList()
testResize()
testSubListContains()