Module:siwa-noun/testcases

From Linguifex
< Module:siwa-noun
Revision as of 14:11, 18 July 2021 by Sware (talk | contribs)
Jump to navigation Jump to search

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

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",	"g"
	}
	self:iterate(list,"check_output")
end

return tests