模組:Te-translit/testcases
這是Module:te-translit的單元測試模塊。
1測試失敗。 (刷新)
文字 | 預期 | 實際 | Differs at | |
---|---|---|---|---|
అంకపాళి | amkapāḷi | aṅkapāḷi | 2 | |
పా | pā | pā | ||
ళి | ḷi | ḷi | ||
ౙమకట్టు | dzamakaṭṭu | dzamakaṭṭu |
-- 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 .. '#Telu|' .. telu .. ']]</span>', te_translit.tr(telu, 'te', 'Telu'), roman)
end
function tests:test_translit_telugu()
self:do_test_translit('అంకపాళి', 'amkapāḷi')
self:do_test_translit('పా', 'pā')
self:do_test_translit('ళి', 'ḷi')
self:do_test_translit('ౙమకట్టు', 'dzamakaṭṭu')
end
return tests