This is the unit-testing module for Module:te-translit.
1 of 6 tests failed. (refresh)
Text | Expected | Actual | Differs at | |
---|---|---|---|---|
అంకపాళి | aṅkapāḷi | aṅkapāḷi | ||
పా | pā | pā | ||
ళి | ḷi | ḷi | ||
నొప్పింౘు | noppinĉu | noppinĉu | ||
ౙమకట్టు | zamakaṭṭu | zamakaṭṭu | ||
కౢప్తం | kl̥ptaṁ | kaౢptaṁ | 2 |
-- Unit tests for ]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local te_translit = require('Module:te-translit')
--TO DO
function tests:do_test_translit(telu, roman, xlit)
self:equals('<span class="Telu" lang="te">]</span>', te_translit.tr(telu, 'te', 'Telu'), roman)
end
function tests:test_translit_telugu()
self:do_test_translit('అంకపాళి', 'aṅkapāḷi')
self:do_test_translit('పా', 'pā')
self:do_test_translit('ళి', 'ḷi')
self:do_test_translit('నొప్పింౘు', 'noppinĉu')
self:do_test_translit('ౙమకట్టు', 'zamakaṭṭu')
self:do_test_translit('కౢప్తం', 'kl̥ptaṁ')
end
return tests