Module:ii-pron/testcases

local tests = require('Module:UnitTests') local m = require('Module:ii-pron')

function tests:check_ipa(text, ipa) self:equals(text, m.ipa(text), ipa) end

function tests:test_ipa self:check_ipa("ꆈꌠ", "nɔ˧˧ su˧˧") self:check_ipa("ꀀꀕ", "i˥˥ i˥˥") self:check_ipa("ꆈꉙ", "nɔ˧˧ ho˨˩") self:check_ipa("ꃬꇁꁍꎐꈢ", "va˧˧ la˧˧ pʰu˨˩ dʐʐ̩˧˧ ɡo˥˥") self:check_ipa("ꒉ", "ʑz̩˧˧") self:check_ipa("ꍏꇩ", "tʂo˧˧ kɔ˨˩") end

return tests