This is a private module sandbox of Thadh, for their own experimentation. Items in this module may be added and removed at Thadh's discretion; do not rely on this module's stability.
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 '<span class="IPA">' .. IPA .. '</span>' 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