Files
kotlin-fork/libraries/stdlib/test/collections/IteratorsTest.kt
T
Ilya Gorbunov 20b122c1dd Use kotlin.test.Test instead of org.junit.Test in common stdlib tests
(and in jvm-only and js-only tests also)
2017-10-15 17:40:53 +03:00

15 lines
289 B
Kotlin

package test.collections
import kotlin.test.*
class IteratorsTest {
@Test fun iterationOverIterator() {
val c = listOf(0, 1, 2, 3, 4, 5)
var s = ""
for (i in c.iterator()) {
s = s + i.toString()
}
assertEquals("012345", s)
}
}