Module:User:Santi2222/nv-pron/testcases

local p = require('Module:UnitTests') local m_nv_pron = require('Module:User:Santi2222/nv-pron')

local function tag_IPA(IPA) return ' ' .. IPA .. ' ' end

function p:check_pron(word, ipa) self:equals(		(' %s '):format(word, word),		m_nv_pron.pronunciation(word),		ipa,		{ display = tag_IPA }	) end

function p:test_pron local examples = { { "Áákinsoo hahoodzo", "ʔɑ́ːkʰɪ̀nsòː hɑ̀hòːt͡sò" }, { "Áawah hahoodzo", "ʔɑ̂ːwɑ̀h hɑ̀hòːt͡sò" }, { "ádahooníłígíí", "ʔɑ́tɑ̀hòːnɪ́ɬɪ́kíː" }, { "ádin", "ʔɑ́tɪ̀n" }, { "agaan", "ʔɑ̀kɑ̀ːn" }, { "akałii", "ʔɑ̀kʰɑ̀ɬìː" }, { "ákótʼé", "ʔɑ́kʰótʼɛ́" }, { "akétłʼóól", "ʔɑ̀kʰɛ́t͡ɬʼóːl" }, { "Akałii bikéyah", "ʔɑ̀kʰɑ̀ɬìː pɪ̀kʰɛ́jɑ̀h" }, { "álánééz", "ʔɑ́lɑ́néːz" }, { "álázhoozh", "ʔɑ́lɑ́ʒòːʒ" }, { "áłtsʼóózí", "ʔɑ́ɬt͡sʼóːzɪ́" }, { "Asdzą́ą́ Nádleehé","ʔɑ̀st͡sɑ̃́ː nɑ́tˡèːhɛ́" }, { "ashdlaʼ", "ʔɑ̀ʃtˡɑ̀ʔ" }, { "ashdlaʼáadah", "ʔɑ̀ʃtˡɑ̀ʔɑ̂ːtɑ̀h" }, { "atʼééké", "ʔɑ̀tʼéːkʰɛ́" }, { "atsá", "ʔɑ̀t͡sʰɑ́" }, { "atsiighaʼ", "ʔɑ̀t͡sʰìːɣɑ̀ʔ" }, { "ayęęzhii", "ʔɑ̀jẽ̀ːʒìː" }, { "azeeʼ", "ʔɑ̀zèːʔ" }, --b { "bááh", "pɑ́ːh" }, { "basdéél", "pɑ̀stéːl" }, { "Beeʼeldííl Dahsinil", "pèːʔɛ̀ltíːl tɑ̀hsɪ̀nɪ̀l" }, { "béégashii", "péːkɑ̀ʃìː" }, { "beeldléí", "pèːltˡɛ́ɪ́" }, { "béésh", "péːʃ" }, { "Béésh Bichʼahii beʼakétłʼóól dijoolí", "péːʃ pɪ̀t͡ʃʼɑ̀hìː pɛ̀ʔɑ̀kʰɛ́t͡ɬʼóːl tɪ̀t͡ʃòːlɪ́" }, --n { "naalʼeełí bitsiitʼáád łigaaígíí", ""}, }	self:iterate(examples, "check_pron") end

return p