Module:txb-nominal/testcases

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

3 of 8 tests failed. (refresh)

TextExpectedActual
test_stressvar:
Passedpat,1pxtpxt
Passedpzt,1patpat
Failedpet,1paitpet
Passedpit,1pitpit
Failedpot,1pautpot
Passedput,1putput
Passedpatet,1pxtetpxtet
Failedpatet,2pataitpztet

local p = require('Module:UnitTests')
local u = require("Module:txb-nominal")

function p:single_test_stressvar(i,N,o)
	self:equals(i..","..N, u.stressvar(i,N), o)
end

function p:test_stressvar()
	local examples = {
		{ "pat", 1, "pxt" },
		{ "pzt", 1, "pat" },
		{ "pet", 1, "pait" },
		{ "pit", 1, "pit" },
		{ "pot", 1, "paut" },
		{ "put", 1, "put" },
		{ "patet", 1, "pxtet" },
		{ "patet", 2, "patait" },
	}
	self:iterate(examples, "single_test_stressvar")
end

return p