Module:ta-translit/testcases

-- 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(' ' .. Taml .. ' ', 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