Module:Check if redirect targets section/testcases
![]() | This is the test cases page for the module Module:Check if redirect targets section. Results of the test cases. |
-- 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:Check if redirect targets section | run | Module talk:Check if redirect targets section/Redirect to section}}', 'true')
self:preprocess_equals('{{#invoke:Check if redirect targets section | run | Module talk:Check if redirect targets section/Redirect not to section}}', 'false')
end
return p