Module:User:Thadh/ltg-IPA/testcases

local tests = require("Module:UnitTests") local m_IPA = require("Module:User:Thadh/ltg-IPA") local lang = require("Module:languages").getByCode("ltg")

local function tag_IPA(IPA) return ' ' .. IPA .. ' ' end local options = {display = tag_IPA}

function tests:check_pron(word, expected) self:equals(		m_IPA.pronunciation_phonemic(word), expected, options	) end

function tests:test_pron local examples = { {"apdūmeigs", "abduːmʲæi̯ks"}, {"acis", "at͡sʲisʲ"}, }	tests:iterate(examples, "check_pron") end

return tests