mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2026-10-26 14:47:25 +00:00
a lot of improvements in language codes
This commit is contained in:
1 parent
7ab21871cd
commit
48d3fe41f2
8 files changed
+2992
-2477
No files matched your search
@@ -0,0 +1,16 @@
|
||||
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)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user