Module:evn-translit/testcases
Appearance
- The following documentation is located at Module:evn-translit/testcases/documentation. [edit] Categories were auto-generated by Module:module categorization. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • tested module • sandbox
All tests passed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
тэкэ̄ты̄мӣ | təkə̄tīmī | təkə̄tīmī | |
тэгэен | təgəjen | təgəjen | |
тыеденэ | tijeʒenə | tijeʒenə | |
надан-дя̄гӣ | nadan-ʒāgī | nadan-ʒāgī | |
мушняла̄бӯн | muşņalābūn | muşņalābūn | |
саӈняпчамӣ | saŋņapçamī | saŋņapçamī | |
эӣмкӯн | əjīmkūn | əjīmkūn | |
эюргэ | əjurgə | əjurgə | |
дё̄нчамӣ | ʒōnçamī | ʒōnçamī | |
тырганӣ | tirgaņī | tirgaņī |
local tests = require("Module:UnitTests")
local evn_translit = require("Module:evn-translit")
local compose = mw.ustring.toNFC
function tests:check_translit(Cyrl, Latn)
self:equals(
('<span lang="evn" class="Cyrl mention">[[%s#Evenki|%s]]</span>'):format(Cyrl, Cyrl),
compose(evn_translit.tr(Cyrl, 'evn', 'Cyrl')),
compose(Latn))
end
function tests:test_translit()
self:check_translit("тэкэ̄ты̄мӣ", "təkə̄tīmī")
self:check_translit("тэгэен", "təgəjen")
self:check_translit("тыеденэ", "tijeʒenə")
self:check_translit("надан-дя̄гӣ", "nadan-ʒāgī")
self:check_translit("мушняла̄бӯн", "muşņalābūn")
self:check_translit("саӈняпчамӣ", "saŋņapçamī")
self:check_translit("эӣмкӯн", "əjīmkūn")
self:check_translit("эюргэ", "əjurgə")
self:check_translit("дё̄нчамӣ", "ʒōnçamī")
self:check_translit("тырганӣ", "tirgaņī")
end
return tests