Module:ee-IPA/testcases

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

All tests passed. (refresh)

TextExpectedActualComments
test_pron:
Passedɣè/ɰè//ɰè/⟨ɣ⟩ represents the allophone of /ɰ/ before front vowels
Passedɣlí/ɰlí//ɰlí/⟨ɣ⟩ also represents an allophone before consonant clusters
Passedàƒé/à.ɸé//à.ɸé/⟨ƒ⟩ is pronounced /ɸ/
Passedwluíwluí/ɰluí.ɰluí//ɰluí.ɰluí/⟨w⟩ represents an allophone of /ɰ/, diphthongs only need to have the last letter tone marked
PassedÁbràhàm/á.blà.hàm//á.blà.hàm/⟨r⟩ represents an allophone of /l/ in certain consonant clusters, words may end in a consonant, remove any leading syllables
Passeddzǐtsítsí/d͡zǐ.t͡sí.t͡sí//d͡zǐ.t͡sí.t͡sí/⟨dz⟩ and ⟨ts⟩ are digraphs for /d͡z/ and /t͡s/ respectively
Passedʋùnyàʋùnyà/βù.ɲà.βù.ɲà//βù.ɲà.βù.ɲà/⟨ʋ⟩ is pronounced /β/, ⟨ny⟩ is a digraph for /ɲ/
Passedtɔ́gbuíyɔ́ví/tɔ́.ɡ͡buí.jɔ́.ví//tɔ́.ɡ͡buí.jɔ́.ví/⟨gb⟩ is a digraph for /ɡ͡b/, diphthongs only need to have the last letter tone marked, ⟨y⟩ is pronounced /j/
Passedwluíwluí/l/ is nasalised if in a consonant cluster
Passeddzǐtsítsí and are the allophones of /d͡z/ and /t͡s/ respectively
Passeddòmènyínú/d/ is dental, /n/ is alveolar

local tests = require("Module:UnitTests")
local m_IPA = require("Module:ee-IPA")
local decomp = mw.ustring.toNFD

local ee = require("Module:languages").getByCode("ee")
local function link(text)
	return require("Module:links").full_link { term = text, lang = ee }
end

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

function tests:test_pron()
	local testcases = {
		{ "ɣè", "ɰè", false, "⟨ɣ⟩ represents the allophone of /ɰ/ before front vowels" },
		{ "ɣlí", "ɰlí", false, "⟨ɣ⟩ also represents an allophone before consonant clusters" },
		{ "àƒé", "à.ɸé", false, "⟨ƒ⟩ is pronounced /ɸ/" },
		{ "wluíwluí", "ɰluí.ɰluí", false, "⟨w⟩ represents an allophone of /ɰ/, diphthongs only need to have the last letter tone marked" },
		{ "Ábràhàm", "á.blà.hàm", false, "⟨r⟩ represents an allophone of /l/ in certain consonant clusters, words may end in a consonant, remove any leading syllables" },
		{ "dzǐtsítsí", "d͡zǐ.t͡sí.t͡sí", false, "⟨dz⟩ and ⟨ts⟩ are digraphs for /d͡z/ and /t͡s/ respectively" },
		{ "ʋùnyàʋùnyà", "βù.ɲà.βù.ɲà", false, "⟨ʋ⟩ is pronounced /β/, ⟨ny⟩ is a digraph for /ɲ/" },
		{ "tɔ́gbuíyɔ́ví", "tɔ́.ɡ͡buí.jɔ́.ví", false, "⟨gb⟩ is a digraph for /ɡ͡b/, diphthongs only need to have the last letter tone marked, ⟨y⟩ is pronounced /j/" },
		{ "wluíwluí", "wl̃uí.wl̃uí,wluí.wluí", true, "/l/ is nasalised if in a consonant cluster" },
		{ "dzǐtsítsí", "d͡ʒǐ.t͡ʃí.t͡ʃí", true, " and  are the allophones of /d͡z/ and /t͡s/ respectively" },
		{ "dòmènyínú", "d̪ò.mè.ɲí.n̺ú,d̪ò.mè.ɲí.n̪ú", true, "/d/ is dental, /n/ is alveolar" }
	}

	self:iterate(testcases, function(self, term, IPA, is_phonetic, comment)
		IPA = decomp(IPA)  -- decompose term to avoid combining character issues
		local actual = m_IPA.toIPA(term, is_phonetic)
		self:equals(link(term), tag_IPA(actual, is_phonetic), tag_IPA(IPA, is_phonetic), { comment = comment })
	end)
end

return tests