Module:gon-Telu-translit/testcases
Jump to navigation
Jump to search
- The following documentation is located at Module:gon-Telu-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:gon-Telu-translit.
3 of 6 tests failed. (refresh)
Text | Expected | Actual | Differs at | Comments | |
---|---|---|---|---|---|
కోయ్లల్ | kōylal | kōylal | 4 | ZWNJ | |
అంకపాళి | aṅkapāḷi | aṅkapāḷi | 9 | ||
పా | pā | pā | |||
ళి | ḷi | ḷi | |||
నొప్పింౘు | noppinĉu | noppinĉu | affricate ౘ /t͡s | ||
ౙమకట్టు | zamakaṭṭu | ẑamakaṭṭu | 1 | affricate ౙ /d͡z/ |
-- Unit tests for [[Module:gon-Telu-translit]]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local gon_translit = require('Module:gon-Telu-translit')
--TO DO
function tests:do_test_translit(telu, roman, comment)
self:equals(
'<span class="Telu" lang="gon">[[' .. telu .. '#Gondi|' .. telu .. ']]</span>',
gon_translit.tr(telu, 'gon', 'Telu'),
roman,
{ comment = comment })
end
function tests:test_translit_gondi()
local examples = {
{ 'కోయ్లల్', 'kōylal', 'ZWNJ '},
{ 'అంకపాళి', 'aṅkapāḷi '},
{ 'పా', 'pā' },
{ 'ళి', 'ḷi' },
{'నొప్పింౘు', 'noppinĉu', 'affricate ౘ /t͡s'},
{'ౙమకట్టు', 'zamakaṭṭu', 'affricate ౙ /d͡z/' },
}
self:iterate(examples, 'do_test_translit')
end
return tests