Module:sandbox/hi-IPA/testcases

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

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

function tests:check_output(term, expected, comment)
	self:equals(
		m_IPA.link(term),
		tag_IPA(m_IPA.toIPA(term, "persianized")),
		tag_IPA(expected),
		{ comment = comment }
	)
end

function tests:test_all()
	examples = {
		{ "kalya", "kəl.jɑ(ː)"},
	}
--[[	Copy the following to add more examples:
		{ "", "" },
]]
	
	tests:iterate(examples, "check_output")
end

return tests