Module:te-translit/testcases

Definition from Wiktionary, the free dictionary
Jump to: navigation, search
The following documentation is located at Module:te-translit/testcases/documentation. [edit]
Useful links: root pageroot page's subpagestransclusionstested module

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

1 tests failed. (refresh)

test_translit_telugu:
Text Expected Actual Differs at
Failed అంకపాళి amkapāḷi aṃkapāḷi 2
Passed పా
Passed ళి ḷi ḷi

-- 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')
 
end
 
return tests