Module:Deva-Kthi-translit/testcases

-- Unit tests for Module:Deva-Kthi-translit. Refresh page to run tests. local tests = require('Module:UnitTests') local transliterate = require('Module:Deva-Kthi-translit').tr

local function tag(text) return ' ' .. text .. ' ' end

local options = { display = tag } --TO DO function tests:do_test_translit(deva, kthi, xlit) self:equals(' ' .. deva .. ' ',		transliterate(deva, 'bho', 'Deva'),		kthi,		options) end

function tests:test_translit_kaithi local examples = { { 'ठाँव', '𑂘𑂰𑂀𑂫' }, { 'ठाँ', '𑂘𑂰𑂀' }, { 'सुग्गा', '𑂮𑂳𑂏𑂹𑂏𑂰' }, { 'लिंगानुपात', '𑂪𑂱𑂁𑂏𑂰𑂢𑂳𑂣𑂰𑂞' }, { 'गईल', '𑂏𑂆𑂪' },

}	self:iterate(examples, 'do_test_translit') end return tests