Module:wuu-pron/testcases

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

1 of 0 tests failed. (refresh)

TextExpectedActual
test_IPA_conv:
Script error during testing: Module:wuu-pron/testcases:23: No function called "ipa_conv" in Module:wuu-pron.
stack traceback:
	: ?
	: in function 'error'
	Module:wuu-pron/testcases:23: in function 'check'
	Module:wuu-pron/testcases:34: in function <Module:wuu-pron/testcases:29>
	(tail call): ?
	(tail call): ?
	: in function 'xpcall'
	Module:fun/xpcall:37: in function 'xpcall'
	Module:UnitTests:389: in function <Module:UnitTests:350>
	(tail call): ?
	mw.lua:527: in function <mw.lua:507>
	: ?
	: in function 'expandTemplate'
	mw.lua:333: in function <mw.lua:307>
	(tail call): ?
	(tail call): ?
	Module:documentation:1043: in function 'chunk'
	mw.lua:527: in function <mw.lua:507>
	: ?

local tests = require("Module:UnitTests")

local m_pron = require("Module:wuu-pron")

local function code(text)
	return '<code>' .. text .. '</code>'
end

local function link(text)
	return '<span class="Hani" lang="zh">]</span>'
end

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

local function show(wuu, zh)
	return code(wuu) .. " (" .. link(zh) .. ")"
end

local options = { display = tag_IPA }
function tests:check(funcName)
	local func = m_pron or error('No function called "' .. funcName .. '" in Module:wuu-pron.')
	return function (self, example, entry, actual)
		self:equals(show(example, entry), func(example), actual, options)
	end
end

function tests:test_IPA_conv()
	local examples = {
		{ "2'ieu zu hhyoe", "幼稚園", "ʔiɜ³³ z̻v̩ʷ⁵⁵ ɦyø²¹" }, -- 幼稚園
		{ "1tson hho", "中華", "t͡sʊŋ⁵⁵ ɦo²¹" },
	}
	self:iterate(examples, self:check("ipa_conv"))
end

return tests