Module:Vaii-translit/testcases

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

local function link(word) return ' ' .. word .. ' ' end

function tests:do_test_translit(vaii, roman, xlit) return self:equals(link(vaii), vai_translit.tr(vaii), roman) end

function tests:test_translit_vaii local examples = { { 'ꕚꕌ', 'taha' }, { '꘎꘎', '!' },		{ 'ꕘꘌ', 'faa' }, { 'ꘖꘌ', 'nii' }, {'ꘓꘌ', 'feeŋ'}, {'ꔥꘌ', 'ĩĩ'}, {'꘎', '.'},		{'ꔮꘌꕷ', 'kpiibo'}, {'ꖷꖬ ꕿ', 'musu to'}, {'ꖷꖬ ꔬ', 'musu ɓi'}, {'ꔤꕷꕞ', 'ibola'} }	return self:iterate(examples, "do_test_translit") end return tests