CharCategory and CharDirectionality enums for JVM.

This commit is contained in:
Ilya Gorbunov
2015-04-13 21:59:31 +03:00
parent fb5a3a771c
commit 062d080e80
4 changed files with 315 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
package test.text
import kotlin.test.*
import org.junit.Test as test
class CharJVMTest {
test fun getCategory() {
assertEquals(CharCategory.DECIMAL_DIGIT_NUMBER, '7'.category())
assertEquals(CharCategory.CURRENCY_SYMBOL, '$'.category())
assertEquals(CharCategory.LOWERCASE_LETTER, 'a'.category())
assertEquals(CharCategory.UPPERCASE_LETTER, 'Õ'.category())
}
}