Module:new-Newa-translit/testcases
Appearance
- The following documentation is located at Module:new-Newa-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
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 [[Module:new-Newa-translit]]. 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">[[' .. sans .. '#Newari|' .. sans .. ']]</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