Files
kotlin/libraries/stdlib/test/StringUtilTest.kt

17 lines
327 B
Kotlin

package test.string
import kotlin.*
import kotlin.test.*
import kotlin.util.*
import junit.framework.*
class StringUtilTest() : TestCase() {
fun testToRegex() {
val re = """foo""".toRegex()
val list = re.split("hellofoobar").filterNotNull()
assertEquals(arrayList("hello", "bar"), list)
}
}