Module:Redirect template handler/testcases: Difference between revisions

imported>Gonnym
No edit summary
 
(No difference)

Latest revision as of 11:15, 28 Haziran 2021

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