Jump to content

Module:R from fictional object multi/testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Gonnym (talk | contribs) at 13:36, 19 December 2019 (Created page with '-- Unit tests for Module:R from fictional object multi. Click talk page to run tests. local p = require('Module:UnitTests') function p:test_01_1_redirect_ca...'). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.
(diff) ← Previous revision | Latest revision (diff) | Newer revision → (diff)
-- Unit tests for [[Module:R from fictional object multi]]. Click talk page to run tests.
local p = require('Module:UnitTests')

function p:test_01_1_redirect_categories_live()
	self:preprocess_equals_many('{{#invoke:R from fictional object multi|character|', '}}', {
		{"1=Arrow", ""},
		{"1=Arrow|2=Flash", ""},
		{"1=Arrow|2=Flash|3=Supergirl", ""},
		{"1=Arrow|2=Flash|3=Supergirl|4=Batwoman", ""},
		{"1=Arrow|2=Flash|3=Supergirl|4=Batwoman|5=Black Lightning", ""},
	})
end

function p:test_01_2_redirect_categories_sandbox()
	self:preprocess_equals_many('{{#invoke:R from fictional object multi/sandbox|main|test=yes|', '}}', {
		{"", ""},
		{"", ""},
		{"", ""},
		{"", ""},
		{"", ""},
	})
end

return p