Module:gon-Gong-translit/testcases
- The following documentation is located at Module:gon-Gong-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-Gong-translit.
All tests passed. (refresh)
Text | Expected | Actual | Differs at | Comments | |
---|---|---|---|---|---|
![]() | 𑵭𑶂𑶌 | vaḍī | vaḍī | ṛ represented by 𑶂 <ḍ> |
-- Unit tests for [[Module:gon-Gong-translit]]. Refresh page to run tests.
local tests = require('Module:UnitTests')
local gon_translit = require('Module:gon-Gong-translit')
--TO DO
function tests:do_test_translit(gong, roman, comment)
self:equals(
'<span class="Gong" lang="gon">[[' .. gong .. '#Gondi|' .. gong .. ']]</span>',
gon_translit.tr(gong, 'gon', 'gong'),
roman,
{ comment = comment })
end
function tests:test_translit_gondi()
local examples = {
{ '𑵭𑶂𑶌', 'vaḍī', 'ṛ represented by 𑶂 <ḍ>'},
}
self:iterate(examples, 'do_test_translit')
end
return tests