mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-11-12 19:33:52 +00:00
16 lines
488 B
Kotlin
16 lines
488 B
Kotlin
package dev.inmo.micro_utils.language_codes
|
|
|
|
import kotlin.test.Test
|
|
import kotlin.test.assertEquals
|
|
|
|
class UnknownIetfLanguageTests {
|
|
@Test
|
|
fun commonTestOfParentCode() {
|
|
knownLanguageCodes.forEach {
|
|
val language = IetfLang.UnknownIetfLang(it.code)
|
|
assertEquals(it.code, language.code)
|
|
assertEquals(it.withoutDialect, language.withoutDialect)
|
|
assertEquals(it.parentLang ?.code, language.parentLang ?.code)
|
|
}
|
|
}
|
|
} |