Module:saz-translit/testcases

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

function tests:check_translit(Saur, roman) self:equals(' ' .. Saur .. ' ', saz_translit.tr(Saur, 'saz', 'Saur'), roman) end

function tests:test_translit_saurashtra self:check_translit('ꢦꢥꢶ', 'pani') self:check_translit('ꢮꢵꢔ꣄', 'vāg') self:check_translit('ꢪꢛ꣄ꢙꢶꢬꢶ', 'mañjiri') self:check_translit('ꢕꣁꢞꣁ', 'ghoḍo') self:check_translit('ꢣꢸꢒ꣄ꢒꢬ꣄', 'dukkar') end return tests