Module:ks-translit/testcases

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

function tests:do_test_translit(deva, roman, xlit) self:equals(' ' .. mw.ustring.gsub(deva, "%+", "") .. ' ', ks_translit.tr(deva, 'ks', 'Deva'), roman) end

function tests:test_translit_ks self:do_test_translit('च़','tsa') self:do_test_translit('कॉशुर','koshur') self:do_test_translit('जहाज़','jahāz') self:do_test_translit('बादाम्','bādām') end return tests