Module:xsr-Deva-translit/testcases

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

function tests:do_test_translit(deva, roman, comment) self:equals(' ' .. mw.ustring.gsub(deva, "%+", "") .. ' ', xsr_translit.tr(deva, 'xsr', 'Deva'), roman, { comment = comment }) end

function tests:test_translit_sherpa self:do_test_translit('ख्योरो', 'khyoro') self:do_test_translit('अच्यू', 'acū') end return tests