Module:Redirect template handler/testcases

< Module:Redirect template handler
Revision as of 11:15, 28 Haziran 2021 by imported>Gonnym
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:Redirect template handler/testcases/doc

-- Unit tests for [[Module:Redirect template handler]]. Click talk page to run tests.
local p = require('Module:UnitTests')

-- Example unit test.
function p:test_song()
	self:preprocess_equals("{{#invoke:Redirect template handler|setSongRedirect|test=yes}}", "R from song, R to anchor, R with possibilities, R printworthy")
	self:preprocess_equals("{{#invoke:Redirect template handler/sandbox|setSongRedirect|test=yes}}", "R from song, R to anchor, R with possibilities, R printworthy")
end

return p