Module:ybh-translit/testcases

-- Unit tests for Module:ybh-translit. Refresh page to run tests. local tests = require('Module:UnitTests') local ybh_translit = require('Module:ybh-translit')-- Unit tests for Module:ybh-translit. Refresh page to run tests. local tests = require('Module:UnitTests') local ybh_translit = require('Module:ybh-translit')

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

function tests:test_translit_yakkha self:do_test_translit('छिम्योक', "chimyoka") end return tests