Files
kotlin-fork/libraries/stdlib/test/text/CharJVMTest.kt
T
Ilya Gorbunov 20b122c1dd Use kotlin.test.Test instead of org.junit.Test in common stdlib tests
(and in jvm-only and js-only tests also)
2017-10-15 17:40:53 +03:00

17 lines
455 B
Kotlin

@file:kotlin.jvm.JvmVersion
package test.text
import kotlin.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)
assertTrue(',' in CharCategory.OTHER_PUNCTUATION)
}
}