Module:xal-translit/testcases
Appearance
- The following documentation is located at Module:xal-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
1 of 3 tests failed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
Хальмг Таңһч | Xal'mg Tañhç | Xalʹmg Tañğç | |
мөрн | mörn | mörn | |
Әрәсә | Äräsä | Äräsä |
local tests = require('Module:UnitTests')
local tr = require('Module:xal-translit').tr
local tag = mw.text.tag
local function tag_Kalmyk(text)
return tag("span", { class = "Cyrl", lang = "xal" }, text)
end
function tests:check_translit(example, expected)
self:equals(
tag_Kalmyk(example),
tr(example),
expected)
end
function tests:test_translit()
local examples = {
{ "Хальмг Таңһч", "Xal'mg Tañhç" },
{ "мөрн", "mörn" },
{ "Әрәсә", "Äräsä" },
}
self:iterate(examples, "check_translit")
end
return tests