Edge Rewrite
// HTMLRewriter · presentation

This page was redesigned at the edge.

Cloudflare fetched the original article and streamed it through HTMLRewriter to apply an entirely new visual system without rebuilding the source page.

Jump to content

Module:Check if redirect targets section/testcases

From Wikipedia, the free encyclopedia
-- 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