Module:en-ta-translit/testcases
Appearance
- The following documentation is located at Module:en-ta-translit/testcases/documentation. [edit] Categories were auto-generated by Module:module categorization. [edit]
- Useful links: root page • root page’s subpages • links • transclusions • tested module • sandbox
This is the unit-testing module for Module:en-ta-translit.
All tests passed. (refresh)
Text | Expected | Actual | Differs at | |
---|---|---|---|---|
![]() | ca | ச | ச | |
![]() | co | சொ | சொ | |
![]() | aḥkam | அஃகம் | அஃகம் | |
![]() | cā | சா | சா | |
![]() | iṭiyāppam | இடியாப்பம் | இடியாப்பம் | |
![]() | amaiti | அமைதி | அமைதி | |
![]() | akkai | அக்கை | அக்கை | |
![]() | arjuṉaṉ | அர்ஜுனன் | அர்ஜுனன் | |
![]() | kuṅkumappū | குங்குமப்பூ | குங்குமப்பூ | |
![]() | apau | அபௌ | அபௌ | |
![]() | acif | அசிஃப் | அசிஃப் | |
![]() | rex | ரெஃஸ் | ரெஃஸ் | |
![]() | azārudīṉ | அஃஜாருதீன் | அஃஜாருதீன் | |
![]() | pūr puvassūva | பூர் புவஸ்ஸூவ | பூர் புவஸ்ஸூவ | |
![]() | 123450 | ௧௨௩௪௫௦ | ௧௨௩௪௫௦ | |
![]() | auai | ஔஐ | ஔஐ | |
![]() | fabēsī | ஃபபேஸீ | ஃபபேஸீ | |
![]() | fabēsiī | ஃபபேஸிஈ | ஃபபேஸிஈ | |
![]() | aā | அஆ | அஆ |
-- Unit tests for [[Module:en-ta-translit]]. Refresh page to run tests.
local p = require('Module:UnitTests')
local tests = require('Module:UnitTests')
local en_ta_translit = require('Module:en-ta-translit')
function tests:check_translit(roman, Taml)
self:equals('<span class="roman" lang="ta">[[' .. roman .. '#Tamil|' .. roman .. ']]</span>', en_ta_translit.tr(roman, 'ta', 'roman'), Taml)
end
function tests:test_translit_tamil()
self:check_translit('ca', 'ச')
self:check_translit('co', 'சொ')
self:check_translit('aḥkam', 'அஃகம்')
self:check_translit('cā', 'சா')
self:check_translit('iṭiyāppam', 'இடியாப்பம்')
self:check_translit('amaiti', 'அமைதி')
self:check_translit('akkai', 'அக்கை')
self:check_translit('arjuṉaṉ', 'அர்ஜுனன்')
self:check_translit('kuṅkumappū', 'குங்குமப்பூ')
self:check_translit('apau', 'அபௌ')
self:check_translit('acif', 'அசிஃப்')
self:check_translit('rex', 'ரெஃஸ்')
self:check_translit('azārudīṉ', 'அஃஜாருதீன்')
self:check_translit('pūr puvassūva', 'பூர் புவஸ்ஸூவ')
self:check_translit('123450', '௧௨௩௪௫௦')
self:check_translit('auai', 'ஔஐ')
self:check_translit('fabēsī', 'ஃபபேஸீ')
self:check_translit('fabēsiī', 'ஃபபேஸிஈ')
self:check_translit('aā', 'அஆ')
end
return p, tests