mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-11-14 04:13:49 +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)
|
||
|
}
|
||
|
}
|
||
|
}
|