CharCategory and CharDirectionality enums for JVM.
This commit is contained in:
@@ -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())
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user