Module:siwa-noun/testcases: Difference between revisions

From Linguifex
Jump to navigation Jump to search
No edit summary
No edit summary
Line 15: Line 15:
"sivi", ""
"sivi", ""
}
}
self:iterate(list,"check_inflection")
self:iterate(list,"check_output")
end
end


return tests
return tests

Revision as of 14:11, 18 July 2021


All tests passed. (refresh)
Text Expected Actual
test_example:
sivi

local tests = require('Module:UnitTests')
local m_noun = require('Module:siwa-noun')

function tests:check_output(term, expected, noresp)
	return tests:equals(
		term,
		m_noun.make_cases(),
		expected,
		{ show_difference = true }
	)
end

function tests:test_example()
	local list= {
		"sivi",	""
	}
	self:iterate(list,"check_output")
end

return tests