-- Panagsubok para iti [[Modulo:Kita ti panid]]. Pinduten ti tungtunganna a panid tapno maipataray ti panagsubok.
local p = require('Modulo:UnitTests')

function p:test_current_page()
	self:preprocess_equals_many('{{#invoke:kita ti panid/pagipadasan|main', '}}', {
		{'', 'modulo'},
		{'|module=no', 'panid'},
		{'|module=foo', 'foo'},
		{'|modulo=saan', 'panid'},
		{'|modulo=foo', 'foo'},
	})
end

function p:test_spaces()
	self:preprocess_equals_many('{{#invoke:kita ti panid/pagipadasan|main', '}}', {
		{'', 'modulo'},
		{'|module=  no  ', 'panid'},
		{'|module=  foo  ', 'foo'},
		{'|page=  USA  |redirect=  No  ', 'artikulo'},
		{'|modulo=  saan  ', 'panid'},
		{'|modulo=  foo  ', 'foo'},
		{'|page=  USA  |redirect=  Saan  ', 'artikulo'},
	})
end

function p:test_all_namespaces()
	self:preprocess_equals_many('{{#invoke:kita ti panid/pagipadasan|main', '}}', {
		{'|page=USA', 'baw-ing'},
		{'|page=Tungtungan:USA', 'baw-ing'},
		{'|page=Estados Unidos iti Amerika', 'artikulo'},
		{'|page=Tungtungan:Estados Unidos iti Amerika', 'artikulo'},
		{'|page=Agar-aramat:Kaspagarigan', 'panid'},
		{'|page=Agar-aramat tungtungan:Kaspagarigan', 'panid'},
		{'|page=Wikipedia:Pungol', 'panid'},
		{'|page=Wikipedia tungtungan:Pungol', 'panid'},
		{'|page=Project:Pungol', 'panid'},
		{'|page=Project talk:Pungol', 'panid'},
		{'|page=WP:Pungol', 'panid'},
		{'|page=WT:Pungol', 'panid'},
		{'|page=File:Example.jpg', 'papeles'},
		{'|page=Papeles tungtungan:Example.jpg', 'papeles'},
		{'|page=Papeles:Example.jpg', 'papeles'},
		{'|page=Papeles tungtungan:Example.jpg', 'papeles'},
		{'|page=MediaWiki:Watchlist-details', 'panid'},
		{'|page=MediaWiki tungtungan:Watchlist-details', 'panid'},
		{'|page=Plantilia:Kita ti panid', 'plantilia'},
		{'|page=Plantilia tungtungan:Kita ti panid', 'plantilia'},
		{'|page=Tulong:Dagiti linaon', 'panid'},
		{'|page=Tulong tungtungan:Dagiti linaon', 'panid'},
		{'|page=Kategoria:Dagiti linaon', 'kategoria'},
		{'|page=Kategoria tungtungan:Dagiti linaon', 'kategoria'},
		--{'|page=Portal:Arts', 'panid'},
		--{'|page=Portal talk:Arts', 'panid'},
		--{'|page=Book:Countries', 'libro'},
		--{'|page=Book talk:Countries', 'libro'},
		--{'|page=Draft:Example', 'panid'},
		--{'|page=Draft talk:Example', 'panid'},
		--{'|page=Education Program:Foo', 'panid'},
		--{'|page=Education Program talk:Foo', 'panid'},
		--{'|page=TimedText:Foo', 'panid'},
		--{'|page=TimedText talk:Foo', 'panid'},
		{'|page=Special:PrefixIndex', 'panid'},
		{'|page=Media:Example.jpg', 'panid'},
	})
end

function p:test_defaultns_none()
	self:preprocess_equals_many('{{#invoke:kita ti panid/pagipadasan|main', '}}', {
		{'|page=USA|defaultns=none', 'baw-ing'},
		{'|page=Tungtungan:USA|defaultns=none', 'baw-ing'},
		{'|page=Estados Unidos iti Amerika|defaultns=none', 'panid'},
		{'|page=Tungtungan:Estados Unidos iti Amerika|defaultns=none', 'panid'},
		{'|page=Agar-aramat:Kaspagarigan|defaultns=none', 'panid'},
		{'|page=Agar-aramat tungtungan:Kaspagarigan|defaultns=none', 'panid'},
		{'|page=Wikipedia:Pungol|defaultns=none', 'panid'},
		{'|page=Wikipedia tungtungan:Pungol|defaultns=none', 'panid'},
		{'|page=Project:Pungol|defaultns=none', 'panid'},
		{'|page=Project talk:Pungol|defaultns=none', 'panid'},
		{'|page=WP:Pungol|defaultns=none', 'panid'},
		{'|page=WT:Pungol|defaultns=none', 'panid'},
		{'|page=Papeles:Example.jpg|defaultns=none', 'panid'},
		{'|page=Papeles tungtungan:Example.jpg|defaultns=none', 'panid'},
		{'|page=Papeles:Example.jpg|defaultns=none', 'panid'},
		{'|page=Papeles tungtungan:Example.jpg|defaultns=none', 'panid'},
		{'|page=MediaWiki:Watchlist-details|defaultns=none', 'panid'},
		{'|page=MediaWiki tungtungan:Watchlist-details|defaultns=none', 'panid'},
		{'|page=Plantilia:Kita ti panid|defaultns=none', 'panid'},
		{'|page=Plantilia tungtungan:Kita ti panid|defaultns=none', 'panid'},
		{'|page=Tulong:Dagiti linaon|defaultns=none', 'panid'},
		{'|page=Tulong tungtungan:Dagiti linaon|defaultns=none', 'panid'},
		{'|page=Kategoria:Dagiti linaon|defaultns=none', 'panid'},
		{'|page=Kategoria tungtungan:Dagiti linaon|defaultns=none', 'panid'},
		--{'|page=Portal:Arts|defaultns=none', 'panid'},
		--{'|page=Portal talk:Arts|defaultns=none', 'panid'},
		--{'|page=Book:Countries|defaultns=none', 'panid'},
		--{'|page=Book talk:Countries|defaultns=none', 'panid'},
		--{'|page=Draft:Example|defaultns=none', 'panid'},
		--{'|page=Draft talk:Example|defaultns=none', 'panid'},
		--{'|page=Education Program:Foo|defaultns=none', 'panid'},
		--{'|page=Education Program talk:Foo|defaultns=none', 'panid'},
		--{'|page=TimedText:Foo|defaultns=none', 'panid'},
		--{'|page=TimedText talk:Foo|defaultns=none', 'panid'},
		{'|page=Special:PrefixIndex|defaultns=none', 'panid'},
		{'|page=Media:Example.jpg|defaultns=none', 'panid'},
	})
end

function p:test_defaultns_extended()
	self:preprocess_equals_many('{{#invoke:kita ti panid/pagipadasan|main', '}}', {
		{'|page=USA|defaultns=extended', 'baw-ing'},
		{'|page=Tungtungan:USA|defaultns=extended', 'baw-ing'},
		{'|page=Estados Unidos iti Amerika|defaultns=extended', 'artikulo'},
		{'|page=Tungtungan:Estados Unidos iti Amerika|defaultns=extended', 'artikulo'},
		{'|page=Agar-aramat:Kaspagarigan|defaultns=extended', 'panid ti agar-aramat'},
		{'|page=Agar-aramat tungtungan:Kaspagarigan|defaultns=extended', 'panid ti agar-aramat'},
		{'|page=Wikipedia:Pungol|defaultns=extended', 'panid ti proyekto'},
		{'|page=Wikipedia tungtungan:Pungol|defaultns=extended', 'panid ti proyekto'},
		{'|page=Project:Pungol|defaultns=extended', 'panid ti proyekto'},
		{'|page=Project talk:Pungol|defaultns=extended', 'panid ti proyekto'},
		{'|page=WP:Pungol|defaultns=extended', 'panid ti proyekto'},
		{'|page=WT:Pungol|defaultns=extended', 'panid ti proyekto'},
		{'|page=Papeles:Example.jpg|defaultns=extended', 'papeles'},
		{'|page=Papeles tungtungan:Example.jpg|defaultns=extended', 'papeles'},
		{'|page=Papeles:Example.jpg|defaultns=extended', 'papeles'},
		{'|page=Papeles tungtungan:Example.jpg|defaultns=extended', 'papeles'},
		{'|page=MediaWiki:Watchlist-details|defaultns=extended', 'panid ti mensahe'},
		{'|page=MediaWiki tungtungan:Watchlist-details|defaultns=extended', 'panid ti mensahe'},
		{'|page=Plantilia:Kita ti panid|defaultns=extended', 'plantilia'},
		{'|page=Plantilia tungtungan:Kita ti panid|defaultns=extended', 'plantilia'},
		{'|page=Tulong:Dagiti linaon|defaultns=extended', 'panid ti tulong'},
		{'|page=Tulong tungtungan:Dagiti linaon|defaultns=extended', 'panid ti tulong'},
		{'|page=Kategoria:Dagiti linaon|defaultns=extended', 'kategoria'},
		{'|page=Kategoria tungtungan:Dagiti linaon|defaultns=extended', 'kategoria'},
		--{'|page=Portal:Arts|defaultns=extended', 'portal'},
		--{'|page=Portal talk:Arts|defaultns=extended', 'portal'},
		--{'|page=Book:Countries|defaultns=extended', 'libro'},
		--{'|page=Book talk:Countries|defaultns=extended', 'libro'},
		--{'|page=Draft:example|defaultns=extended', 'draft'},
		--{'|page=Draft talk:example|defaultns=extended', 'draft'},
		--{'|page=Education Program:Foo|defaultns=extended', 'panid'},
		--{'|page=Education Program talk:Foo|defaultns=extended', 'panid'},
		--{'|page=TimedText:Foo|defaultns=extended', 'panid'},
		--{'|page=TimedText talk:Foo|defaultns=extended', 'panid'},
		{'|page=Special:PrefixIndex|defaultns=extended', 'panid'},
		{'|page=Media:Example.jpg|defaultns=extended', 'panid'},
	})
end

function p:test_defaultns_all()
	self:preprocess_equals_many('{{#invoke:kita ti panid/pagipadasan|main', '}}', {
		{'|page=USA|defaultns=all', 'baw-ing'},
		{'|page=Tungtungan:USA|defaultns=all', 'baw-ing'},
		{'|page=Estados Unidos iti Amerika|defaultns=all', 'artikulo'},
		{'|page=Tungtungan:Estados Unidos iti Amerika|defaultns=all', 'tungtungan a panid'},
		{'|page=Agar-aramat:Kaspagarigan|defaultns=all', 'panid ti agar-aramat'},
		{'|page=Agar-aramat tungtungan:Kaspagarigan|defaultns=all', 'tungtungan a panid'},
		{'|page=Wikipedia:Pungol|defaultns=all', 'panid ti proyekto'},
		{'|page=Wikipedia tungtungan:Pungol|defaultns=all', 'tungtungan a panid'},
		{'|page=Project:Pungol|defaultns=all', 'panid ti proyekto'},
		{'|page=Project talk:Pungol|defaultns=all', 'tungtungan a panid'},
		{'|page=WP:Pungol|defaultns=all', 'panid ti proyekto'},
		{'|page=WT:Pungol|defaultns=all', 'tungtungan a panid'},
		{'|page=Papeles:Example.jpg|defaultns=all', 'papeles'},
		{'|page=Papeles tungtungan:Example.jpg|defaultns=all', 'tungtungan a panid'},
		{'|page=Papeles:Example.jpg|defaultns=all', 'papeles'},
		{'|page=Papeles tungtungan:Example.jpg|defaultns=all', 'tungtungan a panid'},
		{'|page=MediaWiki:Watchlist-details|defaultns=all', 'panid ti mensahe'},
		{'|page=MediaWiki tungtungan:Watchlist-details|defaultns=all', 'tungtungan a panid'},
		{'|page=Plantilia:Kita ti panid|defaultns=all', 'plantilia'},
		{'|page=Plantilia tungtungan:Kita ti panid|defaultns=all', 'tungtungan a panid'},
		{'|page=Tulong:Dagiti linaon|defaultns=all', 'panid ti tulong'},
		{'|page=Tulong tungtungan:Dagiti linaon|defaultns=all', 'tungtungan a panid'},
		{'|page=Kategoria:Dagiti linaon|defaultns=all', 'kategoria'},
		{'|page=Kategoria tungtungan:Dagiti linaon|defaultns=all', 'tungtungan a panid'},
		--{'|page=Portal:Arts|defaultns=all', 'portal'},
		--{'|page=Portal talk:Arts|defaultns=all', 'tungtungan a panid'},
		--{'|page=Book:Countries|defaultns=all', 'libro'},
		--{'|page=Book talk:Countries|defaultns=all', 'tungtungan a panid'},
		--{'|page=Draft:Example|defaultns=all', 'draft'},
		--{'|page=Draft talk:Example|defaultns=all', 'tungtungan a panid'},
		--{'|page=Education Program:Foo|defaultns=all', 'panid ti programa ti edukasion'},
		--{'|page=Education Program talk:Foo|defaultns=all', 'tungtungan a panid'},
		--{'|page=TimedText:Foo|defaultns=all', 'panid ti Naorasan a Testo'},
		--{'|page=TimedText talk:Foo|defaultns=all', 'tungtungan a panid'},
		{'|page=Special:PrefixIndex|defaultns=all', 'espesial a panid'},
		{'|page=Media:Example.jpg|defaultns=all', 'papeles'},
	})
end

function p:test_custom_namespace_text()
	self:preprocess_equals_many('{{#invoke:kita ti panid/pagipadasan|main', '}}', {
		{'|page=USA|redirect=custom text', 'custom text'},
		{'|page=Tungtungan:USA|redirect=custom text', 'custom text'},
		{'|page=Tungtungan:USA|talk=custom text', 'baw-ing'},
		{'|page=Estados Unidos iti Amerika|main=custom text', 'custom text'},
		{'|page=Tungtungan:Estados Unidos iti Amerika|main=custom text', 'custom text'},
		{'|page=Tungtungan:Estados Unidos iti Amerika|talk=custom text', 'custom text'},
		{'|page=Agar-aramat:Kaspagarigan|user=custom text', 'custom text'},
		{'|page=Agar-aramat tungtungan:Kaspagarigan|user=custom text', 'custom text'},
		{'|page=Agar-aramat tungtungan:Kaspagarigan|talk=custom text', 'custom text'},
		{'|page=Wikipedia:Pungol|wikipedia=custom text', 'custom text'},
		{'|page=Wikipedia tungtungan:Pungol|wikipedia=custom text', 'custom text'},
		{'|page=Wikipedia tungtungan:Pungol|talk=custom text', 'custom text'},
		{'|page=Project:Pungol|project=custom text', 'custom text'},
		{'|page=Project talk:Pungol|project=custom text', 'custom text'},
		{'|page=Project talk:Pungol|talk=custom text', 'custom text'},
		{'|page=WP:Pungol|wp=custom text', 'custom text'},
		{'|page=WT:Pungol|wp=custom text', 'custom text'},
		{'|page=WT:Pungol|talk=custom text', 'custom text'},
		{'|page=WT:Pungol|wt=custom text', 'panid'},
		{'|page=Wikipedia:Pungol|project=custom text', 'custom text'},
		{'|page=Wikipedia tungtungan:Pungol|project=custom text', 'custom text'},
		{'|page=WP:Pungol|project=custom text', 'custom text'},
		{'|page=WT:Pungol|project=custom text', 'custom text'},
		{'|page=Wikipedia:Pungol|wp=custom text', 'custom text'},
		{'|page=Wikipedia tungtungan:Pungol|wp=custom text', 'custom text'},
		{'|page=Project:Pungol|wp=custom text', 'custom text'},
		{'|page=Project talk:Pungol|wp=custom text', 'custom text'},
		{'|page=Papeles:Example.jpg|file=custom text', 'custom text'},
		{'|page=Papeles tungtungan:Example.jpg|file=custom text', 'custom text'},
		{'|page=Papeles tungtungan:Example.jpg|talk=custom text', 'custom text'},
		{'|page=Papeles:Example.jpg|file=custom text', 'custom text'},
		{'|page=Papeles tungtungan:Example.jpg|file=custom text', 'custom text'},
		{'|page=Papeles tungtungan:Example.jpg|talk=custom text', 'custom text'},
		{'|page=Papeles:Example.jpg|image=custom text', 'custom text'},
		{'|page=Papeles tungtungan:Example.jpg|image=custom text', 'custom text'},
		{'|page=Papeles tungtungan:Example.jpg|image=custom text', 'custom text'},
		{'|page=Papeles:Example.jpg|image=custom text', 'custom text'},
		{'|page=Papeles tungtungan:Example.jpg|image=custom text', 'custom text'},
		{'|page=Papeles tungtungan:Example.jpg|image=custom text', 'custom text'},
		{'|page=MediaWiki:Watchlist-details|mediawiki=custom text', 'custom text'},
		{'|page=MediaWiki tungtungan:Watchlist-details|mediawiki=custom text', 'custom text'},
		{'|page=MediaWiki tungtungan:Watchlist-details|talk=custom text', 'custom text'},
		{'|page=Plantilia:Kita ti panid|template=custom text', 'custom text'},
		{'|page=Plantilia tungtungan:Kita ti panid|template=custom text', 'custom text'},
		{'|page=Plantilia tungtungan:Kita ti panid|talk=custom text', 'custom text'},
		{'|page=Tulong:Dagiti linaon|help=custom text', 'custom text'},
		{'|page=Tulong tungtungan:Dagiti linaon|help=custom text', 'custom text'},
		{'|page=Tulong tungtungan:Dagiti linaon|talk=custom text', 'custom text'},
		{'|page=Kategoria:Dagiti linaon|category=custom text', 'custom text'},
		{'|page=Kategoria tungtungan:Dagiti linaon|category=custom text', 'custom text'},
		{'|page=Kategoria tungtungan:Dagiti linaon|talk=custom text', 'custom text'},
		--{'|page=Portal:Arts|portal=custom text', 'custom text'},
		--{'|page=Portal talk:Arts|portal=custom text', 'custom text'},
		--{'|page=Portal talk:Arts|talk=custom text', 'custom text'},
		--{'|page=Book:Countries|book=custom text', 'custom text'},
		--{'|page=Book talk:Countries|book=custom text', 'custom text'},
		--{'|page=Book talk:Countries|talk=custom text', 'custom text'},
		--{'|page=Draft:Example|draft=custom text', 'custom text'},
		--{'|page=Draft talk:Example|draft=custom text', 'custom text'},
		--{'|page=Draft talk:Example|talk=custom text', 'custom text'},
		--{'|page=Education Program:Foo|education program=custom text', 'custom text'},
		--{'|page=Education Program talk:Foo|education program=custom text', 'custom text'},
		--{'|page=Education Program talk:Foo|talk=custom text', 'custom text'},
		--{'|page=TimedText:Foo|timedtext=custom text', 'custom text'},
		--{'|page=TimedText talk:Foo|timedtext=custom text', 'custom text'},
		--{'|page=TimedText talk:Foo|talk=custom text', 'custom text'},
		{'|page=Special:PrefixIndex|special=custom text', 'custom text'},
		{'|page=Media:Example.jpg|media=custom text', 'custom text'},
		{'|page=Media:Example.jpg|file=custom text', 'panid'},
	})
end

function p:test_order_of_precedence()
	self:preprocess_equals_many('{{#invoke:kita ti panid/pagipadasan|main', '}}', {
		{'|module=foo', 'foo'}, -- This should be run on the talk page - it will not work if run in other places.
		{'|talk=bar', 'bar'}, -- This should be run on the talk page - it will not work if run in other places.
		{'|module=foo|talk=bar', 'bar'}, -- This should be run on the talk page - it will not work if run in other places.
		{'|page=Modulo:Kita ti panid/subokan|module=foo|talk=bar', 'foo'},
		{'|page=USA|defaultns=none|redirect=foo', 'foo'}, -- UK is a redirect page.
		{'|page=USA|defaultns=none|redirect=foo|main=bar', 'foo'},
		{'|page=USA|defaultns=extended|redirect=foo', 'foo'},
		{'|page=USA|defaultns=extended|main=foo|redirect=bar', 'bar'},
		{'|page=USA|main=foo|redirect=bar', 'bar'},
		{'|page=USA|dab|main=foo|redirect=bar|dab=baz', 'bar'},
		{'|page=USA|na|main=foo|redirect=bar|na=baz', 'bar'},
		{'|page=Tungtungan:USA|main=foo|redirect=bar', 'bar'}, -- Talk:USA is a redirect.
		{'|page=Tungtungan:USA|main=foo|redirect=bar|talk=baz', 'bar'},
		{'|page=Foo|main=foo|redirect=bar', 'bar'}, -- Foo is a redirect.
		{'|page=Tungtungan:Foo|main=foo|redirect=bar', 'bar'}, -- Talk:Foo is not a redirect.
		{'|page=Tungtungan:Foo|main=foo|redirect=bar|talk=baz', 'baz'},
		{'|page=Estados Unidos iti Amerika|main=foo|redirect=bar|talk=baz', 'foo'},		
		{'|page=Estados Unidos iti Amerika|dab|main=foo|redirect=bar|talk=baz', 'panid'},	
		{'|page=Estados Unidos iti Amerika|dab|main=foo|redirect=bar|talk=baz|dab=yes', 'panid'},
		{'|page=Estados Unidos iti Amerika|dab|main=foo|redirect=bar|talk=baz|dab=bin', 'bin'},	
		{'|page=Estados Unidos iti Amerika|na|main=foo|redirect=bar|talk=baz', 'panid'},	
		{'|page=Estados Unidos iti Amerika|na|main=foo|redirect=bar|talk=baz|na=yes', 'panid'},
		{'|page=Estados Unidos iti Amerika|na|main=foo|redirect=bar|talk=baz|na=bin', 'bin'},
		{'|page=Wikipedia:Pungol|wp=foo|project=bar|wikipedia=baz', 'baz'},
		{'|page=Wikipedia:Pungol|wp=foo|project=bar', 'bar'},
		{'|page=Wikipedia:Pungol|wp=foo', 'foo'},
		{'|page=Wikipedia:Pungol|wikipedia=foo|wp=bar', 'foo'},
		{'|page=Wikipedia tungtungan:Pungol|wp=foo|project=bar|wikipedia=baz', 'baz'},
		{'|page=Wikipedia tungtungan:Pungol|wp=foo|project=bar|wikipedia=baz|talk=bin', 'bin'},
		{'|page=Project talk:Pungol|wp=foo|project=bar|wikipedia=baz', 'baz'},
		{'|page=Project talk:Pungol|wp=foo|project=bar|wikipedia=baz|talk=bin', 'bin'},
		{'|page=Papeles:Example.jpg|file=foo|image=bar', 'foo'},
		{'|page=Papeles tungtungan:Example.jpg|file=foo|image=bar', 'foo'},
		{'|page=Papeles tungtungan:Example.jpg|file=foo|image=bar|talk=baz', 'baz'},
		{'|page=Papeles:Example.jpg|file=foo|image=bar', 'foo'},
		{'|page=Papeles tungtungan:Example.jpg|file=foo|image=bar', 'foo'},
		{'|page=Papeles tungtungan:Example.jpg|file=foo|image=bar|talk=baz', 'baz'},
	})
end

function p:test_other_parameter()
	self:preprocess_equals_many('{{#invoke:kita ti panid/pagipadasan|main', '}}', {
		{'|page=Wikipedia:Pungol', 'panid'},
		{'|page=Wikipedia:Pungol|other=custom text', 'custom text'},
		{'|page=Wikipedia:Pungol|other=no', 'panid'},
		{'|page=Wikipedia:Pungol|other=yes', 'panid'},
		{'|page=Wikipedia:Pungol|other=custom text|wikipedia=wikipedia-space text', 'wikipedia-space text'},
	})
end

function p:test_yesno()
	self:preprocess_equals_many('{{#invoke:kita ti panid/pagipadasan|main', '}}', {
		{'|page=Wikipedia:Pungol|wikipedia=yes', 'panid ti proyekto'},
		{'|page=Wikipedia:Pungol|wikipedia=Yes', 'panid ti proyekto'},
		{'|page=Wikipedia:Pungol|wikipedia=YeS', 'panid ti proyekto'},
		{'|page=Wikipedia:Pungol|wikipedia=y', 'panid ti proyekto'},
		{'|page=Wikipedia:Pungol|wikipedia=Y', 'panid ti proyekto'},
		{'|page=Wikipedia:Pungol|wikipedia=true', 'panid ti proyekto'},
		{'|page=Wikipedia:Pungol|wikipedia=True', 'panid ti proyekto'},
		{'|page=Wikipedia:Pungol|wikipedia=TrUe', 'panid ti proyekto'},
		{'|page=Wikipedia:Pungol|wikipedia=1', 'panid ti proyekto'},
		{'|page=Wikipedia:Pungol|wikipedia=1.0', 'panid ti proyekto'},
		{'|page=Wikipedia:Pungol|wikipedia=wen', 'panid ti proyekto'},
		{'|page=Wikipedia:Pungol|wikipedia=Wen', 'panid ti proyekto'},
		{'|page=Wikipedia:Pungol|wikipedia=WeN', 'panid ti proyekto'},
		{'|page=Wikipedia:Pungol|wikipedia=W', 'panid ti proyekto'},
		{'|page=Wikipedia:Pungol|wikipedia=w', 'panid ti proyekto'},
		{'|page=Plantilia:Kita ti panid|template=no', 'panid'},
		{'|page=Plantilia:Kita ti panid|template=No', 'panid'},
		{'|page=Plantilia:Kita ti panid|template=nO', 'panid'},
		{'|page=Plantilia:Kita ti panid|template=n', 'panid'},
		{'|page=Plantilia:Kita ti panid|template=N', 'panid'},
		{'|page=Plantilia:Kita ti panid|template=false', 'panid'},
		{'|page=Plantilia:Kita ti panid|template=False', 'panid'},
		{'|page=Plantilia:Kita ti panid|template=fAlSe', 'panid'},
		{'|page=Plantilia:Kita ti panid|template=0.0', 'panid'},
		{'|page=Plantilia:Kita ti panid|plantilia=Saan', 'panid'},
		{'|page=Plantilia:Kita ti panid|plantilia=sAan', 'panid'},
		{'|page=Plantilia:Kita ti panid|plantilia=saan', 'panid'},
		{'|page=Plantilia:Kita ti panid|plantilia=S', 'panid'},
		{'|page=Plantilia:Kita ti panid|plantilia=s', 'panid'},
	})
end

function p:test_subject_redirect_defaultns_all()
	self:preprocess_equals_many('{{#invoke:kita ti panid/pagipadasan|main', '}}', {
		{'|page=MediaWiki tungtungan:Spam-blacklist/log|defaultns=all', 'tungtungan a panid'},
	})
end

return p