Module:User:AmazingJus/so/testcases

Hello, you have come here looking for the meaning of the word Module:User:AmazingJus/so/testcases. In DICTIOUS you will not only get to know all the dictionary meanings for the word Module:User:AmazingJus/so/testcases, but we will also tell you about its etymology, its characteristics and you will know how to say Module:User:AmazingJus/so/testcases in singular and plural. Everything you need to know about the word Module:User:AmazingJus/so/testcases you have here. The definition of the word Module:User:AmazingJus/so/testcases will help you to be more precise and correct when speaking or writing your texts. Knowing the definition ofModule:User:AmazingJus/so/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/so')

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

function tests:check_output(term, expected, link)
	return tests:equals(
		link and m_IPA.link(term) .. " (respelled " .. m_IPA.tag_text(link) .. ")" or m_IPA.link(term),
		m_IPA.toIPA(term),
		expected,
		{ display = tag_IPA }
	)
end

function tests:test_pron()
	local list = {
		{"inán<F>", "inǽn" },
		{"ínan<F>", "ínæn" },
		{"geedka", "FIXME" }
	}
	self:iterate(list, "check_output")
end

--[[
			Additions take this form –
		{ "entry name", "IPA" },
		{ "", "" },
			or, if you are generating IPA from a respelling of the term –
		{ "respelling", "IPA", "entry name" }
		{ "", "", "" },
			Make sure to include the comma, or the module will return an error.
]]--

return tests