String <-> CharArray conversion, ArrayBuilder by @elizarov (#98)
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user