Module:Ahom-translit/testcases
Jump to navigation
Jump to search
Documentation for this module may be created at Module:Ahom-translit/testcases/doc
local tests = require("Module:UnitTests")
local transliterate = require("Module:Ahom-translit").tr
local function tag(text)
return '<span class="Ahom">' .. text .. '</span>'
end
function tests:check(example, expected)
return self:equals(
tag(example),
expected,
transliterate(example)
)
end
function tests:test_translit()
local examples = {
{ "𑜁𑜨𑜧", "khow" },
{ "𑜁𑜦𑜡", "khoo" },
}
tests:iterate(examples, "check")
end
return tests