Module:kjp-translit/testcases
Jump to navigation
Jump to search
Documentation for this module may be created at Module:kjp-translit/testcases/doc
local tests = require('Module:UnitTests')
local kjp_translit = require('Module:kjp-translit')
function tests:check_tr(Mymr, Latn)
self:equals(('<span class="Mymr" lang="kjp">[[%s#ဖၠုံ|%s]]</span>'):format(Mymr, Mymr), kjp_translit.tr(Mymr, 'kjp', 'Mymr'), Latn)
end
function tests:test_translit()
self:check_tr("ကျာ်", "kjài")
self:check_tr("ခါန်ႋ", "khāɴ")
end
return tests