Module:lep-translit/testcases

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

function tests:do_test_translit(lepc, roman, xlit) self:equals(' ' .. mw.ustring.gsub(lepc, "%+", "") .. ' ', lep_translit.tr(lepc, 'lep', 'Lepc'), roman) end

function tests:test_translit_lepcha self:do_test_translit('ᰕᰧ', 'mi') self:do_test_translit('ᰈᰬᰲ', 'jer') self:do_test_translit('ᰎᰪᰰᰈᰬᰵ', 'punjeng') end return tests