- The following documentation is located at Module:te-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: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 [[Module:te-translit]]. 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">[[' .. telu .. '#Telugu|' .. telu .. ']]</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