Jump to content

Module:WikiProject assessment progression/testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Sasuke Sarutobi (talk | contribs) at 23:18, 3 December 2020 (Forgot that type outputs in Lua are strings). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
-- Unit tests for [[Module:WikiProject assessment progression]]. Click talk page to run tests.
local myModule = require('Module:WikiProject assessment progression')
local ScribuntoUnit = require('Module:ScribuntoUnit')
local suite = ScribuntoUnit:new()
local args = 0

local function assertSameType(expectedType,functionName)
	local doesTypeMatch = (expectedType == type(functionName))
	return doesTypeMatch
end

-- Example unit test.
function suite:test_number_is_number()
	self:assertSameType( 'number' , 10 )
end

return suite