Module:Redirect template handler/testcases
< Module:Redirect template handler
Jump to navigation
Jump to search
Revision as of 06:15, 28 June 2021 by Wikipedia>Gonnym
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