Module:kv-translit/testcases
Appearance
- The following documentation is located at Module:kv-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
2 of 3 tests failed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
аддзыны | addźyny | addźyny | |
ассьым | aśśym | asśym | |
аттьӧ | aťťö | atťö |
local tests = require("Module:UnitTests")
local kv_translit = require("Module:kv-translit")
function tests:check_translit(Cyrl, Latn)
self:equals(('<span lang="kv" class="Cyrl mention">[[%s#Komi|%s]]</span>'):format(Cyrl, Cyrl), kv_translit.tr(Cyrl, 'kv', 'Cyrl'), Latn)
end
function tests:test_translit()
local examples = {
{ "аддзыны", "addźyny" },
{ "ассьым", "aśśym" },
{ "аттьӧ", "aťťö" },
}
self:iterate(examples, "check_translit")
end
return tests