Module:User:Erutuon/syllables/sandbox/testcases

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

Module error: No such module "syllables/sandbox/testcases".


local tests = require("Module:UnitTests")

local m_syllables = require("Module:syllables/sandbox")

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

function tests:check(example, expected)
	self:equals(
		tag(example),
		m_syllables.count(example),
		expected
	)
end

function tests:test()
	local examples = {
		{ "ðɛɹ", 1 },
		{ "ðɛɚ", 2 },
		{ "ðɛɚ̯", 1 },
	}
	
	tests:iterate(examples, "check")
end

return tests