Module:akk-decl-noun/testacases

From Wiktionary, the free dictionary
Jump to navigation Jump to search

local tests = require('Module:UnitTests')
local decl = require("Module:akk-decl-noun")
function tests:check(name, value, expected)
   for name1, expect in ipairs(expected) do
   		self:equals(name.."."..name1, value, expect)
	end
end

function tests:test_decl() 
	for name, test in tests.g do
		self:check(decl.main(name, test.args, true), test.expected)
	end
	
end

tests.g = {
	
}