Module:txb-nominal/testcases


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