Module:lic-pron/testcases

local p = require('Module:UnitTests') local m = require('Module:lic-pron')

function p:ipa(text, expected) self:equals(text, m.ipa(text), "/" .. expected .. "/") end

function p:test_ipa self:ipa("aeublaeu", "ʔaːu˥˧.plaːu˥˧") self:ipa("ang", "ʔaŋ˥˧") self:ipa("baisyas", "pai˩.ˀja˩") self:ipa("bheenxaek", "ɓeːn˥.ʔaːk˥") self:ipa("bheuu'uuem", "ɓeɯ˥˧.ʔɯːm˥˧") self:ipa("bheuucai", "ɓeɯ˥˧.t͡sʰai˥˧") self:ipa("cahwan", "t͡sʰa˥˧.hʷan˥˧") self:ipa("caty", "t͡sʰac˥") self:ipa("cokran", "t͡sʰok˥.ran˥˧") self:ipa("copceix", "t͡sʰop˥.t͡sʰei˥") self:ipa("copcun", "t͡sʰop˥.t͡sʰun˥˧") self:ipa("dauxmuty", "tau˥.muc˥") self:ipa("dheeng'hwoek", "ɗeːŋ˥˧.hʷoːk˥") self:ipa("dhienxos", "ɗiːn˥.ʔoː˩") self:ipa("dhuaxo", "ɗua˥.ʔoː˥˧") self:ipa("dza", "za˥˧") self:ipa("fan", "fan˥˧") self:ipa("ghoeis", "ɡoːi˩") self:ipa("gomfous", "kom˥˧.fou˩") self:ipa("goppgaus", "kop˥˧.kau˩") self:ipa("haekkdziengx", "haːk˥˧.ziːŋ˥") self:ipa("hleny", "ɬeɲ˥˧") self:ipa("hluuek'ueng", "ɬɯːk˥.ʔuːŋ˥˧") self:ipa("huen'ghwous", "huːn˥˧.ɡʷou˩") self:ipa("ka'ngais", "kʰa˥˧.ŋai˩") self:ipa("laeis", "laːi˩") self:ipa("laeppnoms", "laːp˥˧.nom˩") self:ipa("li'ek", "li˥˧.ʔek˥") self:ipa("lueks", "luːk˩") self:ipa("lokkzeuu", "lok˥˧.t͡seɯ˥˧") self:ipa("man'ghui", "man˥˧.ɡui˥˧") self:ipa("na", "na˥˧") self:ipa("nga'ngom", "ŋa˥˧.ŋom˥˧") self:ipa("nyuttnyutt", "ɲut˥˧.ɲut˥˧") self:ipa("oep", "ʔoːp˥") self:ipa("pasdang", "pʰa˩.taŋ˥˧") self:ipa("qieng", "t͡sʰiːŋ˥˧") self:ipa("raeisuet", "raːi˩.ʔuːt˥") self:ipa("tau'uet", "tʰau˥˧.ʔuːt˥") self:ipa("tietttoengs", "tʰiːt˥˧.tʰoːŋ˩") self:ipa("toxlaxgix", "tʰoː˥.la˥.ki˥") self:ipa("tom'oms", "tʰom˥˧.ʔom˩") self:ipa("tuuenkuis", "tʰɯːn˥˧.kʰui˩") self:ipa("tun'uueks", "tʰun˥˧.ʔɯːk˩") self:ipa("zuudhangx", "t͡sɯ˥.ɗaŋ˥") self:ipa("tunhlai", "tʰun˥˧.ɬai˥˧") self:ipa("datygeekhla", "tac˥.keːk˥.ɬa˥˧") end

return p