Module:Check if redirect targets section/testcases

-- 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