Module:gon-Gong-translit/testcases: Difference between revisions
Jump to navigation
Jump to search
Created page with "-- 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 .. '</span>', gon_translit.tr(gong, 'gon', 'gong'), roman, { comment = comment }) end function tests:test_translit_gondi() local examples = { { '..." |
m 1 revision imported |
(No difference)
| |
Latest revision as of 12:46, 21 April 2026
- This module testcase page lacks a documentation subpage. Please create it.
- Useful links: root page • root page’s subpages • links • transclusions • tested module • sandbox
-- 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