Module:lic-pron/testcases

From Wiktionary, the free dictionary
Jump to navigation Jump to search

This is the unit-testing module for Module:lic-pron.

All tests passed. (refresh)

TextExpectedActualDiffers at
test_ipa:
Passedaeublaeu/ʔaːu˥˧.plaːu˥˧//ʔaːu˥˧.plaːu˥˧/
Passedang/ʔaŋ˥˧//ʔaŋ˥˧/
Passedbaisyas/pai˩.ˀja˩//pai˩.ˀja˩/
Passedbheenxaek/ɓeːn˥.ʔaːk˥//ɓeːn˥.ʔaːk˥/
Passedbheuu'uuem/ɓeɯ˥˧.ʔɯːm˥˧//ɓeɯ˥˧.ʔɯːm˥˧/
Passedbheuucai/ɓeɯ˥˧.t͡sʰai˥˧//ɓeɯ˥˧.t͡sʰai˥˧/
Passedcahwan/t͡sʰa˥˧.hʷan˥˧//t͡sʰa˥˧.hʷan˥˧/
Passedcaty/t͡sʰac˥//t͡sʰac˥/
Passedcokran/t͡sʰok˥.ran˥˧//t͡sʰok˥.ran˥˧/
Passedcopceix/t͡sʰop˥.t͡sʰei˥//t͡sʰop˥.t͡sʰei˥/
Passedcopcun/t͡sʰop˥.t͡sʰun˥˧//t͡sʰop˥.t͡sʰun˥˧/
Passeddauxmuty/tau˥.muc˥//tau˥.muc˥/
Passeddheeng'hwoek/ɗeːŋ˥˧.hʷoːk˥//ɗeːŋ˥˧.hʷoːk˥/
Passeddhienxos/ɗiːn˥.ʔoː˩//ɗiːn˥.ʔoː˩/
Passeddhuaxo/ɗua˥.ʔoː˥˧//ɗua˥.ʔoː˥˧/
Passeddza/za˥˧//za˥˧/
Passedfan/fan˥˧//fan˥˧/
Passedghoeis/ɡoːi˩//ɡoːi˩/
Passedgomfous/kom˥˧.fou˩//kom˥˧.fou˩/
Passedgoppgaus/kop˥˧.kau˩//kop˥˧.kau˩/
Passedhaekkdziengx/haːk˥˧.ziːŋ˥//haːk˥˧.ziːŋ˥/
Passedhleny/ɬeɲ˥˧//ɬeɲ˥˧/
Passedhluuek'ueng/ɬɯːk˥.ʔuːŋ˥˧//ɬɯːk˥.ʔuːŋ˥˧/
Passedhuen'ghwous/huːn˥˧.ɡʷou˩//huːn˥˧.ɡʷou˩/
Passedka'ngais/kʰa˥˧.ŋai˩//kʰa˥˧.ŋai˩/
Passedlaeis/laːi˩//laːi˩/
Passedlaeppnoms/laːp˥˧.nom˩//laːp˥˧.nom˩/
Passedli'ek/li˥˧.ʔek˥//li˥˧.ʔek˥/
Passedlueks/luːk˩//luːk˩/
Passedlokkzeuu/lok˥˧.t͡seɯ˥˧//lok˥˧.t͡seɯ˥˧/
Passedman'ghui/man˥˧.ɡui˥˧//man˥˧.ɡui˥˧/
Passedna/na˥˧//na˥˧/
Passednga'ngom/ŋa˥˧.ŋom˥˧//ŋa˥˧.ŋom˥˧/
Passednyuttnyutt/ɲut˥˧.ɲut˥˧//ɲut˥˧.ɲut˥˧/
Passedoep/ʔoːp˥//ʔoːp˥/
Passedpasdang/pʰa˩.taŋ˥˧//pʰa˩.taŋ˥˧/
Passedqieng/t͡sʰiːŋ˥˧//t͡sʰiːŋ˥˧/
Passedraeisuet/raːi˩.ʔuːt˥//raːi˩.ʔuːt˥/
Passedtau'uet/tʰau˥˧.ʔuːt˥//tʰau˥˧.ʔuːt˥/
Passedtietttoengs/tʰiːt˥˧.tʰoːŋ˩//tʰiːt˥˧.tʰoːŋ˩/
Passedtoxlaxgix/tʰoː˥.la˥.ki˥//tʰoː˥.la˥.ki˥/
Passedtom'oms/tʰom˥˧.ʔom˩//tʰom˥˧.ʔom˩/
Passedtuuenkuis/tʰɯːn˥˧.kʰui˩//tʰɯːn˥˧.kʰui˩/
Passedtun'uueks/tʰun˥˧.ʔɯːk˩//tʰun˥˧.ʔɯːk˩/
Passedzuudhangx/t͡sɯ˥.ɗaŋ˥//t͡sɯ˥.ɗaŋ˥/
Passedtunhlai/tʰun˥˧.ɬai˥˧//tʰun˥˧.ɬai˥˧/
Passeddatygeekhla/tac˥.keːk˥.ɬa˥˧//tac˥.keːk˥.ɬa˥˧/



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