Module:Ahom-translit/testcases
Appearance
- The following documentation is located at Module:Ahom-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 2 tests failed. (refresh)
Text | Expected | Actual | |
---|---|---|---|
𑜁𑜨𑜧 | khow | khow | |
𑜁𑜦𑜡 | khō | khoo |
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