Module:WikiProject assessment progression/testcases

This is an old revision of this page, as edited by Sasuke Sarutobi (talk | contribs) at 19:23, 3 December 2020 (Creating unit test page with example test to ensure tests run). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
-- Unit tests for [[Module:{{ROOTPAGENAME}}]]. Click talk page to run tests.
local myModule = require('Module:{{ROOTPAGENAME}}')
local ScribuntoUnit = require('Module:ScribuntoUnit')
local suite = ScribuntoUnit:new()

-- Example unit test.
function p:test_hello()
	self:preprocess_equals('{{#invoke:Example | hello}}', 'Hello, world!')
end

return suite