Module:ta-translit/testcases
- පහත දැක්වෙන උපදෙස්, Module:ta-translit/testcases/documentation හි පිහිටා ඇත. Module:ta-translit/testcases/documentation]]. [සංස්කරණය] Categories were auto-generated by Module:module categorization. [edit]
- ප්රයෝජනවත් සබැඳි: root page • root page’s subpages • සබැඳි • transclusions • tested module • sandbox
This is the unit-testing module for Module:ta-translit.
1 of 7 tests failed. (refresh)
Text | Expected | Actual | Differs at | |
---|---|---|---|---|
அஃகம் | aḥkam | aḥkam | ||
கஞ்சாவை | kañcāvai | kañcāvai | ||
இடியாப்பம் | iṭiyāppam | iṭiyāppam | ||
காடைக்கண்ணி | kāṭaikkaṇṇi | kāṭaikkaṇṇi | ||
ரெஃஸ் | rex | reks | 3 | |
அசிஃப் | acif | acif | ||
ஔவை | auvai | auvai |
-- 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