Module:User:AmazingJus/kri/testcases

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


local tests = require("Module:UnitTests")
local m_IPA = require("Module:User:AmazingJus/kri")

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

function tests:test_pron()
	local testcases = {
		{ "kpátákpátá", "k͡pá.tá.k͡pá.tá", "⟨kp⟩ represents /k͡p/" },
		{ "gbàgbàtì", "ɡ͡bà.ɡ͡bà.tì", "⟨gb⟩ represents /ɡ͡b/" },
		{ "àstáfùlâi", "às.tá.fù.lâj", "⟨ai⟩ represents /aj/" },
		{ "wàhálà", "wà.(h)á.là", "syllable-initial ⟨h⟩ is mostly silent" },
		{ "kúshɛ́h", "kú.ʃɛ́", "syllable-final ⟨h⟩ is silent" }
	}

	local options = {
		display = function(IPA)
			return '<span class="IPA">/' .. IPA .. '/</span>'
		end
	}

	self:iterate(testcases, function(self, term, IPA)
		self:equals(link(term), m_IPA.toIPA(term), IPA, options)
	end)
end

return tests