Module:Deva-Limb-translit/testcases

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

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

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

function tests:test_translit_limb local examples = { {'निङ्घुम्', 'ᤏᤡᤱᤄᤢᤶ'}, {'पोःङ्ल', 'ᤐᤥ᤺ᤱᤗ'}, {'ये़सुमाङ्ओ', 'ᤕᤧᤛᤢᤔᤠᤱᤀᤥ'}, {'याक्थुङ्', 'ᤕᤠᤰᤌᤢᤱ'}, }	self:iterate(examples, 'do_test_translit') end return tests