Module:Newa-Deva-translit/testcases

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

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

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

function tests:test_translit_deva local examples = { { '𑐤', 'न्ह' }, }	self:iterate(examples, 'do_test_translit') end return tests