Jump to content

Module:te-translit/testcases

From Wiktionary, the free dictionary

This is the unit-testing module for Module:te-translit.

1 of 6 tests failed. (refresh)

TextExpectedActualDiffers at
test_translit_telugu:
Passedఅంకపాళిaṅkapāḷiaṅkapāḷi
Passedపా
Passedళిḷiḷi
Passedనొప్పింౘుnoppinĉunoppinĉu
Passedౙమకట్టుzamakaṭṭuzamakaṭṭu
Failedకౢప్తం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