Module:sandbox/bcl-pron/testcases

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

Module error: No such module "bcl-pron/sandbox/testcases".


local tests = require("Module:UnitTests")
local m_bcl_pron = require("Module:bcl-pron/sandbox")

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

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

function tests:test_phonetic_pron()
	local examples = {
        { "aldaw", "ʔal̪ˈd̪aʊ̯", "aldáw" },
        { "anyil", "ʔaˈɲil̪", "anyíl" },
        { "aso", "ˈʔa.so", "aso" },
        { "baak", "ˈbaʔ.ak", "bâak"},
        { "babaye","baˈba.je", "babaye" },
		{ "baga","ˈba.ɡaʔ", "bagà" },
		{ "baga","baˈɡaʔ", "bagâ" },
		{ "baka","ˈba.ka", "baka" },
        { "bakla","bakˈl̪aʔ", "baklâ" },
        { "banyo","ˈba.ɲo", "banyo" },
        { "bareta","baˈɾe.taʔ", "baretà" },
        { "basog", "baˈsoɡ", "basóg" },
        { "bitaog", "biˈtaʔ.oɡ", "bitâog"},
        { "Camarines Sur","ka.maˈɾi.n̪es suɾ","Camarines Sur"}, 
        { "Carlos","ˈkaɾ.l̪os","Carlos"},
		{ "daan","ˈd̪aʔ.an̪", "dâan" },
		{ "datong","d̪aˈtoŋ", "datóng" },
		{ "dila", "ˈd̪i.l̪aʔ", "dilà" }, 
		{ "diyaryo","ˈd͡ʒaɾ.jo", "diyaryo" }, 
		{ "dominggo", "d̪oˈmiŋ.ɡo", "dominggo"},
		{ "duwa", "ˈd̪wa", "duwá"},
		{ "hadok","haˈd̪ok", "hadók" },
		{ "hagok","ˈhaʔ.ɡok", "hàgok" }, 
		{ "hiwa","ˈhi.waʔ", "hiwà" },
		{ "hiwaon","hiˈwaʔ.on̪", "hiwâon" },
		{ "ina","ʔiˈn̪a", "iná" },
		{ "kabaong", "kaˈbaʔ.oŋ", "kabâong"},
		{ "katre", "ˈkat.ɾe", "katre"},
        { "lagadi","l̪aˈɡa.d̪iʔ","lagadì"}, 
		{ "lapida","ˈl̪a.pi.d̪a","lápida"},
		{ "laya","ˈl̪aʔ.ja","lâya"},
		{ "Legazpi","l̪eˈɡas.pi","Legazpi"},
        { "ligwan","l̪iɡˈwan̪","ligwán"},
        { "linog","ˈl̪i.n̪oɡ","linog"},
		{ "luob","l̪uʔˈob","lù.ób"},
		{ "luto","ˈl̪u.toʔ","lutò"},
        { "Niño","ˈn̪i.ɲo","Niño"},
        { "nganga","ˈŋa.ŋa","nganga"},
        { "pakla","pakˈl̪a", "paklá" },
        { "parakol","pa.ɾaˈkol̪", "parakól" },
        { "pinto","pin̪ˈtoʔ", "pintô" },
        { "pulo","puˈl̪oʔ", "pulô" },
	}

	self:iterate(examples, "check_phonetic_ipa")
end


return tests