Module:su-translit/testcases

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

function tests:check_translit(Sund, roman) self:equals(' ' .. Sund .. ' ', su_translit.tr(Sund, 'su', 'Sund'), roman) end

function tests:test_translit_sundanese self:check_translit('ᮃᮜᮥᮔᮺᮌᮥᮀ', 'alun-agung') self:check_translit('ᮞ᮪ᮝᮛ', 'swara') self:check_translit('ᮍᮜᮌᮨᮔ', 'ngalagena') self:check_translit('ᮛᮛᮀᮊᮨᮔ᮪', 'rarangken') self:check_translit('|᮲᮰᮱᮵|', '2015') self:check_translit('ᮃᮊ᮪ᮞᮛ', 'aksara') self:check_translit('ᮃᮀᮊ', 'angka') self:check_translit('ᮓᮜᮤᮀᮓᮤᮀ', 'dalingding') self:check_translit('ᮃᮍᮤᮔ᮪', 'angin') self:check_translit('ᮌᮥᮔ᮪ᮒᮤᮀ', 'gunting') self:check_translit('ᮓᮓᮝᮥᮠᮔ᮪', 'dadawuhan') self:check_translit('ᮒᮩᮊ᮪ᮒᮩᮊ᮪', 'teukteuk') self:check_translit('ᮃᮔᮾ', 'anak') self:check_translit('ᮄᮊᮣᮤᮙ᮪', 'iklim') end return tests