Module:Sandbox/Roostery123/testcases

Revision as of 05:00, 15 November 2022 by imported>Roost (Created page with '-- Unit tests for [[Module:{{ROOTPAGENAME}}]]. Click talk page to run tests. local p = require('Module:UnitTests') -- Example unit test. function p:test_hello() self:preprocess_equals('{{#invoke:Sandbox/Roostery123|hello|hi}}', 'Hello, world!') end return p')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:Sandbox/Roostery123/testcases/doc

-- Unit tests for [[Module:{{ROOTPAGENAME}}]]. Click talk page to run tests.
local p = require('Module:UnitTests')

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

return p