Rename Pattern to Regex.

toRegex now converts string to our regex, and toPattern converts to JVM Pattern.
This commit is contained in:
Ilya Gorbunov
2015-04-09 16:16:52 +03:00
parent a4784dfa78
commit 559c1604d7
13 changed files with 52 additions and 50 deletions
+2 -2
View File
@@ -5,8 +5,8 @@ import kotlin.test.*
import org.junit.Test as test
class StringUtilTest() {
test fun toRegex() {
val re = """foo""".toRegex()
test fun toPattern() {
val re = """foo""".toPattern()
val list = re.split("hellofoobar").toList()
assertEquals(listOf("hello", "bar"), list)
}