Module:pam-pron/testcases

Hello, you have come here looking for the meaning of the word Module:pam-pron/testcases. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:pam-pron/testcases, but we will also tell you about its etymology, its characteristics and you will know how to say Module:pam-pron/testcases in singular and plural. Everything you need to know about the word Module:pam-pron/testcases you have here. The definition of the word Module:pam-pron/testcases will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:pam-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:
Passedaldoəlˈdoːəlˈdoː
Passedamanuəˈmäː.nuəˈmäː.nu
Passedbalebəˈlɛːbəˈlɛː
Passedbakaˈbäː.xəˈbäː.xə
Passedbatuinbəˈtwinbəˈtwin
Passedkamaruˈkäː.mə.ɾuˈkäː.mə.ɾu
Passeddeniˈdɛː.niˈdɛː.ni
PassedWawaˈwäː.wəʔˈwäː.wəʔ

local tests = require("Module:UnitTests")
local m_pam_pron = require("Module:pam-pron")

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

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

function tests:test_phonetic_pron()
	local examples = {
        { "aldo","əlˈdoː","aldó" },
        { "amanu","əˈmäː.nu","amánu" },
        { "bale","bəˈlɛː", "balé" },
        { "baka","ˈbäː.xə","báka" },
        { "batuin","bəˈtwin", "batuin" },
        { "kamaru","ˈkäː.mə.ɾu", "kámaru" },
        { "deni","ˈdɛː.ni", "déni" },
        { "Wawa", "ˈwäː.wəʔ", "Wáwâ"}
	}
	self:iterate(examples, "check_phonetic_ipa")
end


return tests