မဝ်ဂျူ:gon-Gong-translit/testcases
This is the unit-testing module for Module:gon-Gong-translit. All tests passed. (refresh)
လိက် | ဗွဲမရံၚ်လၟဳ | မဇေတ်ဍာံ | ဒၞာဲတၞဟ်ခြာ | တၚ်လညာတ်ဂမၠိုၚ် | |
---|---|---|---|---|---|
𑵭𑶂𑶌 | vaḍī | vaḍī | ṛ represented by 𑶂 <ḍ> |
-- Unit tests for [[Module:gon-Gong-translit]]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local gon_translit = require('Module:gon-Gong-translit')
--TO DO
function tests:do_test_translit(gong, roman, comment)
self:equals(
'<span class="Gong" lang="gon">[[' .. gong .. '#Gondi|' .. gong .. ']]</span>',
gon_translit.tr(gong, 'gon', 'gong'),
roman,
{ comment = comment })
end
function tests:test_translit_gondi()
local examples = {
{ '𑵭𑶂𑶌', 'vaḍī', 'ṛ represented by 𑶂 <ḍ>'},
}
self:iterate(examples, 'do_test_translit')
end
return tests