Minor. Cleanup test.

This commit is contained in:
Ilya Ryzhenkov
2014-06-06 01:31:04 +04:00
committed by Andrey Breslav
parent 516bae17d7
commit 4e4d0b448c
2 changed files with 9 additions and 11 deletions
+4 -6
View File
@@ -3,14 +3,12 @@ package test.text
import kotlin.*
import kotlin.test.*
import kotlin.util.*
import org.junit.Test as test
import junit.framework.*
class StringUtilTest() : TestCase() {
fun testToRegex() {
class StringUtilTest() {
test fun toRegex() {
val re = """foo""".toRegex()
val list = re.split("hellofoobar").toList()
assertEquals(arrayList("hello", "bar"), list)
assertEquals(listOf("hello", "bar"), list)
}
}