Module:User:TagaSanPedroAko/pag-pron/testcases

local tests = require("Module:UnitTests") local m_pag_pron = require("Module:User:TagaSanPedroAko/pag-pron")

local function pag_IPA(IPA) return " " .. IPA .. " " end

function tests:check_phonetic_ipa(word, expected, respelling) self:equals(		"" .. word .. "",		m_pag_pron.IPA(respelling, true),		expected,		{ display = tag_IPA }	) end

function tests:test_phonetic_pron local examples = {

{ "agew","aˈgɨʊ̯","agë́w" }, { "baley","baˈlɨ", "balë́y" }, { "bituen","bɪˈtwɨn", "bituë́n" }, { "Camiling","ka.mɪˈlɪŋ", "Camilíng" }, { "Cariño","kaˈɾɪ.njo", "Cariño" }, { "Dios","d͡ʒʊs", "Dios" }, { "Estados Unidos","ɪsˈta.dʊs ʊˈni.dʊs", "estados unidos" }, { "inom","iˈnʊm", "inóm"}, { "say","saɪ̯", "say"}, { "wawak","waˈwak", "wawák"}, { "yabyab", "jabˈjab", "yabyáb"}, }	self:iterate(examples, "check_phonetic_ipa") end

return tests