Module:gon-Gong-translit/testcases

From Wiktionary, the free dictionary
Jump to navigation Jump to search

This is the unit-testing module for Module:gon-Gong-translit.

All tests passed. (refresh)

TextExpectedActualDiffers atComments
test_translit_gondi:
Passed𑵭𑶂𑶌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