Module:kjl-IPA/testcases

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

TextExpectedActualComments
test_phonetic:
Script error during testing: Module:kjl-IPA:94: attempt to concatenate global 'Kham' (a nil value)
stack traceback:
	: ?
	Module:kjl-IPA:94: in function 'toIPA'
	Module:kjl-IPA/testcases:15: in function 'func'
	Module:UnitTests:295: in function 'iterate'
	Module:kjl-IPA/testcases:33: in function <Module:kjl-IPA/testcases:21>
	(tail call): ?
	: in function 'xpcall'
	Module:UnitTests:369: in function <Module:UnitTests:328>
	(tail call): ?
	mw.lua:527: in function <mw.lua:507>
	: ?
	: in function 'expandTemplate'
	mw.lua:333: in function 'expandTemplate'
	Module:documentation:894: in function 'chunk'
	mw.lua:527: in function <mw.lua:507>
	: ?

local tests = require("Module:UnitTests")
local m_IPA = require("Module:kjl-IPA")

local function tag_IPA(IPA)
		if phonetic then
			IPA = '/' .. IPA .. '/'
		else
			IPA = ''
		end
	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, "standard")),
		tag_IPA(expected),
		{ comment = comment }
	)
end

function tests:test_phonetic()
	examples = {
        { "ज़ा", "zɐ" },
        { "झङ", "d͡zə̤ŋ" },
        { "झ़ार", "zɐ̤r" },
        { "व़ाः", "ɥɐ̤" },
        { "ह्व़े", "ɥ̊e" },
        { "ह्लेपा", "ɬe.pɐ" },
        { "बोङ्दै", "boŋ.dəj" },
        { "कलिःङ्गा", "kə.li̤ŋ.ɡɐ" },
        { "चोः", "t͡so̤" },
	}
tests:iterate(examples, "check_output")

end

return tests