Module:akk-IPA/testcases

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

All tests passed. (refresh)

TextExpectedActualDiffers at
test_pron:
Passedabnumˈab.numˈab.num
Passedabumˈa.bumˈa.bum
Passedadiˈa.diˈa.di
Passedagammumaˈɡam.mumaˈɡam.mum
Passedakalumˈa.ka.lumˈa.ka.lum
Passedakālumaˈkaː.lumaˈkaː.lum
Passedalaktumaˈlak.tumaˈlak.tum
Passedalpumˈal.pumˈal.pum
Passedalākumaˈlaː.kumaˈlaː.kum
Passedamtumˈam.tumˈam.tum
Passedamurdinnuma.murˈdin.numa.murˈdin.num
Passedanākuaˈnaː.kuaˈnaː.ku
Passedaplumˈap.lumˈap.lum
Passedaptumˈap.tumˈap.tum
Passedarārumaˈraː.rumaˈraː.rum
Passedattaˈat.taˈat.ta
Passedattiˈat.tiˈat.ti
Passed-atum-a.tum-a.tum
Passedawīltumaˈwiːl.tumaˈwiːl.tum
Passedawīlumaˈwiː.lumaˈwiː.lum
Passedaššatumˈaʃ.ʃa.tumˈaʃ.ʃa.tum
Passedaḫumˈa.χumˈa.χum
Passedaḫûmaˈχuːmaˈχuːm
Passedaḫātumaˈχaː.tumaˈχaː.tum
Passedbirkumˈbir.kumˈbir.kum
PassedBābilimˈbaː.bi.limˈbaː.bi.lim
Passedbābumˈbaː.bumˈbaː.bum
Passedbēltumˈbeːl.tumˈbeːl.tum
Passedbēlumˈbeː.lumˈbeː.lum
Passedbītumˈbiː.tumˈbiː.tum
Passeddamāqumdaˈmaː.qumdaˈmaː.qum
Passeddanānumdaˈnaː.numdaˈnaː.num
Passeddayyānumdajˈjaː.numdajˈjaː.num
Passeddārumˈdaː.rumˈdaː.rum
Passedeleppumeˈlep.pumeˈlep.pum
Passedelēpumeˈleː.pumeˈleː.pum
Passedemūqumeˈmuː.qumeˈmuː.qum
Passedeperumˈe.pe.rumˈe.pe.rum
Passederbumˈer.bumˈer.bum
Passedergilumˈer.ɡi.lumˈer.ɡi.lum
Passederṣetumˈer.sˤe.tumˈer.sˤe.tum
Passedgišimmarumɡiˈʃim.ma.rumɡiˈʃim.ma.rum
Passedidumˈi.dumˈi.dum
Passedilkumˈil.kumˈil.kum
Passediltumˈil.tumˈil.tum
Passedilumˈi.lumˈi.lum
Passedimērumiˈmeː.rumiˈmeː.rum
Passedinaˈi.naˈi.na
Passedittiˈit.tiˈit.ti
Passedišarumˈi.ʃa.rumˈi.ʃa.rum
Passedišdumˈiʃ.dumˈiʃ.dum
PassedIštarˈiʃ.tarˈiʃ.tar
Passedištēniʃˈteːniʃˈteːn
Passediṣumˈi.sˤumˈi.sˤum
Passedkakkabumˈkak.ka.bumˈkak.ka.bum
Passedkalbumˈkal.bumˈkal.bum
Passedkankumˈkan.kumˈkan.kum
Passedkanākumkaˈnaː.kumkaˈnaː.kum
Passedkanīkumkaˈniː.kumkaˈniː.kum
Passedkappumˈkap.pumˈkap.pum
Passedkaspumˈkas.pumˈkas.pum
Passedkašādumkaˈʃaː.dumkaˈʃaː.dum
Passedkirûmkiˈruːmkiˈruːm
Passedkunukkumkuˈnuk.kumkuˈnuk.kum
Passedkāsumˈkaː.sumˈkaː.sum
Passedlamassumlaˈmas.sumlaˈmas.sum
Passedlibbumˈlib.bumˈlib.bum
Passedlûmˈluːmˈluːm
Passedlaːlaː
Passedlīmumˈliː.mumˈliː.mum
Passedlītumˈliː.tumˈliː.tum
Passedmarrumˈmar.rumˈmar.rum
Passedmazzaztummazˈzaz.tummazˈzaz.tum
Passedmidrumˈmid.rumˈmid.rum
Passedmusukkannummu.sukˈkan.nummu.sukˈkan.num
Passedmutumˈmu.tumˈmu.tum
Passedmuškēnummuʃˈkeː.nummuʃˈkeː.num
Passedˈmuːˈmuː
Passedmārtumˈmaːr.tumˈmaːr.tum
Passedmārumˈmaː.rumˈmaː.rum
Passedmātumˈmaː.tumˈmaː.tum
Passedmēsumˈmeː.sumˈmeː.sum
Passednadānumnaˈdaː.numnaˈdaː.num
Passednagbumˈnaɡ.bumˈnaɡ.bum
Passednārumˈnaː.rumˈnaː.rum
Passednīšumˈniː.ʃumˈniː.ʃum
Passedpaššūrumpaʃˈʃuː.rumpaʃˈʃuː.rum
Passedpûmˈpuːmˈpuːm
Passedpān šattimˈpaːn ˈʃat.timˈpaːn ˈʃat.tim
Passedpānumˈpaː.numˈpaː.num
Passedqabûmqaˈbuːmqaˈbuːm
Passedqanûmqaˈnuːmqaˈnuːm
Passedqaqqadumˈqaq.qa.dumˈqaq.qa.dum
Passedqaqqarumˈqaq.qa.rumˈqaq.qa.rum
Passedqarnumˈqar.numˈqar.num
Passedrēšumˈreː.ʃumˈreː.ʃum
Passedsinništumsinˈniʃ.tumsinˈniʃ.tum
Passedsīḫumˈsiː.χumˈsiː.χum
Passeduuu
Passedugārumuˈɡaː.rumuˈɡaː.rum
Passedummumˈum.mumˈum.mum
PassedUrarṭuuˈrar.tˤuuˈrar.tˤu
Passedurrumˈur.rumˈur.rum
Passeduznumˈuz.numˈuz.num
Passedwaklumˈwak.lumˈwak.lum
Passedwalādumwaˈlaː.dumwaˈlaː.dum
Passedwardumˈwar.dumˈwar.dum
Passedwarāqumwaˈraː.qumwaˈraː.qum
Passedwarḫumˈwar.χumˈwar.χum
Passedyâtiˈjaː.tiˈjaː.ti
Passedzikarumˈzi.ka.rumˈzi.ka.rum
Passedzikrumˈzik.rumˈzik.rum
Passedziqqurratumziqˈqur.ra.tumziqˈqur.ra.tum
Passedālikumˈaː.li.kumˈaː.li.kum
Passedālumˈaː.lumˈaː.lum
Passedēkallumeːˈkal.lumeːˈkal.lum
Passedēnumˈeː.numˈeː.num
Passed-iː-iː
Passedīkumˈiː.kumˈiː.kum
Passedīnumˈiː.numˈiː.num
Passedšaʃaʃa
Passedšamaššammumʃa.maʃˈʃam.mumʃa.maʃˈʃam.mum
Passedšammi Šamašˈʃam.mi ˈʃa.maʃˈʃam.mi ˈʃa.maʃ
Passedšammumˈʃam.mumˈʃam.mum
Passedšamnumˈʃam.numˈʃam.num
Passedšamûʃaˈmuːʃaˈmuː
Passedšamšumˈʃam.ʃumˈʃam.ʃum
Passedšarqumˈʃar.qumˈʃar.qum
Passedšarratumˈʃar.ra.tumˈʃar.ra.tum
Passedšarrumˈʃar.rumˈʃar.rum
PassedŠarrum-kīnʃar.rum-ˈkiːnʃar.rum-ˈkiːn
Passedšarrāqumʃarˈraː.qumʃarˈraː.qum
Passedšarāqumʃaˈraː.qumʃaˈraː.qum
Passedšattumˈʃat.tumˈʃat.tum
Passedšinnumˈʃin.numˈʃin.num
Passedšummaˈʃum.maˈʃum.ma
Passedšumumˈʃu.mumˈʃu.mum
Passedšārtumˈʃaːr.tumˈʃaːr.tum
Passedšēdumˈʃeː.dumˈʃeː.dum
Passedšīpātumʃiːˈpaː.tumʃiːˈpaː.tum
Passedšūmūˈʃuː.muːˈʃuː.muː
Passedūmumˈuː.mumˈuː.mum
Passedḫalāqumχaˈlaː.qumχaˈlaː.qum
Passedḫaṣṣinnumχasˤˈsˤin.numχasˤˈsˤin.num
Passedḫurāṣumχuˈraː.sˤumχuˈraː.sˤum
Passedṣerretumˈsˤer.re.tumˈsˤer.re.tum
Passedṣeḫrumˈsˤeχ.rumˈsˤeχ.rum
Passedṣeḫērumsˤeˈχeː.rumsˤeˈχeː.rum
Passedṣuprumˈsˤup.rumˈsˤup.rum
Passedṣuḫārtumsˤuˈχaːr.tumsˤuˈχaːr.tum
Passedṣuḫārumsˤuˈχaː.rumsˤuˈχaː.rum
Passedṣābumˈsˤaː.bumˈsˤaː.bum
Passedṭabtumˈtˤab.tumˈtˤab.tum
Passedṭuppumˈtˤup.pumˈtˤup.pum
Passedṭābumˈtˤaː.bumˈtˤaː.bum

local tests = require("Module:UnitTests")
local m_IPA = require("Module:akk-IPA")
local lang = require("Module:languages").getByCode("akk")

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(
		require("Module:links").full_link({term = word, lang = lang}, nil, true), m_IPA.pronunciation_phonemic(word), expected, options
	)
end

function tests:test_pron()
	local examples = {
        {"abnum", "ˈab.num"},
        {"abum", "ˈa.bum"},
        {"adi", "ˈa.di"},
        {"agammum", "aˈɡam.mum"},
        {"akalum", "ˈa.ka.lum"},
        {"akālum", "aˈkaː.lum"},
        {"alaktum", "aˈlak.tum"},
        {"alpum", "ˈal.pum"},
        {"alākum", "aˈlaː.kum"},
        {"amtum", "ˈam.tum"},
        {"amurdinnum", "a.murˈdin.num"},
        {"anāku", "aˈnaː.ku"},
        {"aplum", "ˈap.lum"},
        {"aptum", "ˈap.tum"},
        {"arārum", "aˈraː.rum"},
        {"atta", "ˈat.ta"},
        {"atti", "ˈat.ti"},
        {"-atum", "-a.tum"},
        {"awīltum", "aˈwiːl.tum"},
        {"awīlum", "aˈwiː.lum"},
        {"aššatum", "ˈaʃ.ʃa.tum"},
        {"aḫum", "ˈa.χum"},
        {"aḫûm", "aˈχuːm"},
        {"aḫātum", "aˈχaː.tum"},
        {"birkum", "ˈbir.kum"},
        {"Bābilim", "ˈbaː.bi.lim"},
        {"bābum", "ˈbaː.bum"},
        {"bēltum", "ˈbeːl.tum"},
        {"bēlum", "ˈbeː.lum"},
        {"bītum", "ˈbiː.tum"},
        {"damāqum", "daˈmaː.qum"},
        {"danānum", "daˈnaː.num"},
        {"dayyānum", "dajˈjaː.num"},
        {"dārum", "ˈdaː.rum"},
        {"eleppum", "eˈlep.pum"},
        {"elēpum", "eˈleː.pum"},
        {"emūqum", "eˈmuː.qum"},
        {"eperum", "ˈe.pe.rum"},
        {"erbum", "ˈer.bum"},
        {"ergilum", "ˈer.ɡi.lum"},
        {"erṣetum", "ˈer.sˤe.tum"},
        {"gišimmarum", "ɡiˈʃim.ma.rum"},
        {"idum", "ˈi.dum"},
        {"ilkum", "ˈil.kum"},
        {"iltum", "ˈil.tum"},
        {"ilum", "ˈi.lum"},
        {"imērum", "iˈmeː.rum"},
        {"ina", "ˈi.na"},
        {"itti", "ˈit.ti"},
        {"išarum", "ˈi.ʃa.rum"},
        {"išdum", "ˈiʃ.dum"},
        {"Ištar", "ˈiʃ.tar"},
        {"ištēn", "iʃˈteːn"},
        {"iṣum", "ˈi.sˤum"},
        {"kakkabum", "ˈkak.ka.bum"},
        {"kalbum", "ˈkal.bum"},
        {"kankum", "ˈkan.kum"},
        {"kanākum", "kaˈnaː.kum"},
        {"kanīkum", "kaˈniː.kum"},
        {"kappum", "ˈkap.pum"},
        {"kaspum", "ˈkas.pum"},
        {"kašādum", "kaˈʃaː.dum"},
        {"kirûm", "kiˈruːm"},
        {"kunukkum", "kuˈnuk.kum"},
        {"kāsum", "ˈkaː.sum"},
        {"lamassum", "laˈmas.sum"},
        {"libbum", "ˈlib.bum"},
        {"lûm", "ˈluːm"},
        {"lā", "laː"},
        {"līmum", "ˈliː.mum"},
        {"lītum", "ˈliː.tum"},
        {"marrum", "ˈmar.rum"},
        {"mazzaztum", "mazˈzaz.tum"},
        {"midrum", "ˈmid.rum"},
        {"musukkannum", "mu.sukˈkan.num"},
        {"mutum", "ˈmu.tum"},
        {"muškēnum", "muʃˈkeː.num"},
        {"mû", "ˈmuː"},
        {"mārtum", "ˈmaːr.tum"},
        {"mārum", "ˈmaː.rum"},
        {"mātum", "ˈmaː.tum"},
        {"mēsum", "ˈmeː.sum"},
        {"nadānum", "naˈdaː.num"},
        {"nagbum", "ˈnaɡ.bum"},
        {"nārum", "ˈnaː.rum"},
        {"nīšum", "ˈniː.ʃum"},
        {"paššūrum", "paʃˈʃuː.rum"},
        {"pûm", "ˈpuːm"},
        {"pān šattim", "ˈpaːn ˈʃat.tim"},
        {"pānum", "ˈpaː.num"},
        {"qabûm", "qaˈbuːm"},
        {"qanûm", "qaˈnuːm"},
        {"qaqqadum", "ˈqaq.qa.dum"},
        {"qaqqarum", "ˈqaq.qa.rum"},
        {"qarnum", "ˈqar.num"},
        {"rēšum", "ˈreː.ʃum"},
        {"sinništum", "sinˈniʃ.tum"},
        {"sīḫum", "ˈsiː.χum"},
        {"u", "u"},
        {"ugārum", "uˈɡaː.rum"},
        {"ummum", "ˈum.mum"},
        {"Urarṭu", "uˈrar.tˤu"},
        {"urrum", "ˈur.rum"},
        {"uznum", "ˈuz.num"},
        {"waklum", "ˈwak.lum"},
        {"walādum", "waˈlaː.dum"},
        {"wardum", "ˈwar.dum"},
        {"warāqum", "waˈraː.qum"},
        {"warḫum", "ˈwar.χum"},
        {"yâti", "ˈjaː.ti"},
        {"zikarum", "ˈzi.ka.rum"},
        {"zikrum", "ˈzik.rum"},
        {"ziqqurratum", "ziqˈqur.ra.tum"},
        {"ālikum", "ˈaː.li.kum"},
        {"ālum", "ˈaː.lum"},
        {"ēkallum", "eːˈkal.lum"},
        {"ēnum", "ˈeː.num"},
        {"-ī", "-iː"},
        {"īkum", "ˈiː.kum"},
        {"īnum", "ˈiː.num"},
        {"ša", "ʃa"},
        {"šamaššammum", "ʃa.maʃˈʃam.mum"},
        {"šammi Šamaš", "ˈʃam.mi ˈʃa.maʃ"},
        {"šammum", "ˈʃam.mum"},
        {"šamnum", "ˈʃam.num"},
        {"šamû", "ʃaˈmuː"},
        {"šamšum", "ˈʃam.ʃum"},
        {"šarqum", "ˈʃar.qum"},
        {"šarratum", "ˈʃar.ra.tum"},
        {"šarrum", "ˈʃar.rum"},
        {"Šarrum-kīn", "ʃar.rum-ˈkiːn"},
        {"šarrāqum", "ʃarˈraː.qum"},
        {"šarāqum", "ʃaˈraː.qum"},
        {"šattum", "ˈʃat.tum"},
        {"šinnum", "ˈʃin.num"},
        {"šumma", "ˈʃum.ma"},
        {"šumum", "ˈʃu.mum"},
        {"šārtum", "ˈʃaːr.tum"},
        {"šēdum", "ˈʃeː.dum"},
        {"šīpātum", "ʃiːˈpaː.tum"},
        {"šūmū", "ˈʃuː.muː"},
        {"ūmum", "ˈuː.mum"},
        {"ḫalāqum", "χaˈlaː.qum"},
        {"ḫaṣṣinnum", "χasˤˈsˤin.num"},
        {"ḫurāṣum", "χuˈraː.sˤum"},
        {"ṣerretum", "ˈsˤer.re.tum"},
        {"ṣeḫrum", "ˈsˤeχ.rum"},
        {"ṣeḫērum", "sˤeˈχeː.rum"},
        {"ṣuprum", "ˈsˤup.rum"},
        {"ṣuḫārtum", "sˤuˈχaːr.tum"},
        {"ṣuḫārum", "sˤuˈχaː.rum"},
        {"ṣābum", "ˈsˤaː.bum"},
        {"ṭabtum", "ˈtˤab.tum"},
        {"ṭuppum", "ˈtˤup.pum"},
        {"ṭābum", "ˈtˤaː.bum"}
	}
	
	tests:iterate(examples, "check_pron")
end

return tests