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

1 of 7 tests failed. (refresh)

TextExpectedActualDiffers at
test_translit_tamil:
Passedஅஃகம்aḥkamaḥkam
Passedகஞ்சாவைkañcāvaikañcāvai
Passedஇடியாப்பம்iṭiyāppamiṭiyāppam
Passedகாடைக்கண்ணிkāṭaikkaṇṇikāṭaikkaṇṇi
Failedரெஃஸ்rexreks3
Passedஅசிஃப்acifacif
Passedஔவைauvaiauvai

-- Unit tests for [[Module:ta-translit]]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local ta_translit = require('Module:ta-translit')

function tests:check_translit(Taml, roman)
	self:equals('<span class="Taml" lang="ta">[[' .. Taml .. '#Tamil|' .. Taml .. ']]</span>', ta_translit.tr(Taml, 'ta', 'Taml'), roman)
end

function tests:test_translit_tamil()
	self:check_translit('அஃகம்', 'aḥkam')
	self:check_translit('கஞ்சாவை', 'kañcāvai')
	self:check_translit('இடியாப்பம்', 'iṭiyāppam')
	self:check_translit('காடைக்கண்ணி', 'kāṭaikkaṇṇi')
	self:check_translit("ரெஃஸ்","rex")
	self:check_translit("அசிஃப்","acif")
	self:check_translit("ஔவை", "auvai")
	
end
 
return tests
"https://si.wiktionary.org/w/index.php?title=Module:ta-translit/testcases&oldid=39024" වෙතින් සම්ප්‍රවේශනය කෙරිණි