This is the unit-testing module for Module:new-Newa-translit.
All tests passed. (refresh)
Text | Expected | Actual | Differs at | |
---|---|---|---|---|
𑐣𑐾𑐥𑐵𑐮 𑐨𑐵𑐲𑐵 | nepāla bhāṣā | nepāla bhāṣā | ||
𑐳𑑂𑐎𑐩𑑂𑐨 | skambha | skambha |
-- Unit tests for ]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local new_translit = require('Module:new-Newa-translit')
--TO DO
function tests:do_test_translit(sans, roman, xlit)
return self:equals('<span class="Newa" lang="new">]</span>', new_translit.tr(sans, 'new', 'Newa'), roman)
end
function tests:test_translit_newari()
local examples = {
{ '𑐣𑐾𑐥𑐵𑐮 𑐨𑐵𑐲𑐵', 'nepāla bhāṣā' },
{ '𑐳𑑂𑐎𑐩𑑂𑐨', 'skambha' },
}
return self:iterate(examples, "do_test_translit")
end
return tests