Module:Redirect template handler/testcases

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