Module:ceb-pron/testcases

Hello, you have come here looking for the meaning of the word Module:ceb-pron/testcases. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:ceb-pron/testcases, but we will also tell you about its etymology, its characteristics and you will know how to say Module:ceb-pron/testcases in singular and plural. Everything you need to know about the word Module:ceb-pron/testcases you have here. The definition of the word Module:ceb-pron/testcases will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:ceb-pron/testcases, as well as those of other words, enriches your vocabulary and provides you with more and better linguistic resources.

All tests passed. (refresh)

TextExpectedActual
test_phonetic_pron:
Passedaksiyonʔɐkˈs̪jon̪ʔɐkˈs̪jon̪
Passedalambreʔɐˈl̪am.bɾ̪eʔɐˈl̪am.bɾ̪e
Passedbaboyˈba.boɪ̯ˈba.boɪ̯
Passedbukidˈbu.kɪd̪ˈbu.kɪd̪
Passedbulanˈbu.l̪ɐn̪ˈbu.l̪ɐn̪
Passedbuwanˈbu.wɐn̪ˈbu.wɐn̪
Passeddyaketˈd̪ja.ket̪ˈd̪ja.ket̪
Passedinahanʔɪˈn̪a.hɐn̪ʔɪˈn̪a.hɐn̪
Passedkongresokoŋˈɡɾ̪i.s̪okoŋˈɡɾ̪i.s̪o
Passedlimpiyoˈl̪im.pjoˈl̪im.pjo
Passednganoˈŋa.n̪oˈŋa.n̪o
Passedpekeˈpi.keʔˈpi.keʔ
Passedtawoˈt̪a.woˈt̪a.wo
Passedtsekeˈt̪s̪i.keˈt̪s̪i.ke
Passedtuoˈt̪u.ʔoˈt̪u.ʔo

local tests = require("Module:UnitTests")
local m_ceb_pron = require("Module:ceb-pron")

local function tag_IPA(IPA)
	return "<span class='IPA'>" .. IPA .. "</span>"
end

local options = { display = tag_IPA }

function tests:check_phonetic_ipa(text, expected, respelling)
	self:equals(
		"]",
		m_ceb_pron.IPA(respelling),
		expected,
		{ display = tag_IPA }
	)
end

function tests:test_phonetic_pron()
	local examples = {
		{ "aksiyon","ʔɐkˈs̪jon̪", "aksiyón" },
        { "alambre", "ʔɐˈl̪am.bɾ̪e", "alambre" },
        { "baboy", "ˈba.boɪ̯", "baboy" },
        { "bukid", "ˈbu.kɪd̪", "bukid" },
        { "bulan", "ˈbu.l̪ɐn̪", "bulan" },
        { "buwan", "ˈbu.wɐn̪", "buwan" },
        { "dyaket", "ˈd̪ja.ket̪", "dyaket" },
        { "inahan", "ʔɪˈn̪a.hɐn̪", "inahan"},
        { "kongreso", "koŋˈɡɾ̪i.s̪o", "kon.greso"},
        { "limpiyo", "ˈl̪im.pjo", "limpyo" },
        { "ngano", "ˈŋa.n̪o", "ngano" },
        { "peke", "ˈpi.keʔ", "pekè" },
        { "tawo", "ˈt̪a.wo", "tawo" },
        { "tseke", "ˈt̪s̪i.ke", "tseke" },
        { "tuo", "ˈt̪u.ʔo", "tu7o" },
	}
	self:iterate(examples, "check_phonetic_ipa")
end


return tests