Jump to content

Module:Infobox television disambiguation check/testcases

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Gonnym (talk | contribs) at 17:49, 21 May 2019 (Created page with '-- Example Unit tests for Module:Bananas. Click talk page to run tests. local p = require('Module:UnitTests') function p:test_main() self:preprocess_equals...'). 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)
-- Example Unit tests for [[Module:Bananas]]. Click talk page to run tests.
local p = require('Module:UnitTests')

function p:test_main()
	self:preprocess_equals_many('{{#invoke:Infobox television disambiguation check|main|', '}}', {
		{''},
		{'Lost'},
		{'Lost (TV series)'},
		{'Lost (TV program)'},
		{'Lost (TV programme)'},
		{'Lost (TV film)'},
		{'Lost (film)'},
		{'Lost (miniseries)'},
		{'Lost (serial)'},
		{'Lost (game show)'},
		{'Lost (talk show)'},
		{'Lost (web series)'},
		{'The (206)'},
		{'Cinderella (Apakah Cinta Hanyalah Mimpi?)'},
		{'How to Live with Your Parents (For the Rest of Your Life)'},
		{'I (Almost) Got Away With It'},
		{'Monty Python: Almost the Truth (Lawyers Cut)'},
		{'Randall and Hopkirk (Deceased)'}
	})
end

function p:test_sandbox_main()
	self:preprocess_equals_many('{{#invoke:Infobox television disambiguation check/sandbox|main|', '}}', {
		{''},
		{'Lost'},
		{'Lost (TV series)'},
		{'Lost (TV program)'},
		{'Lost (TV programme)'},
		{'Lost (TV film)'},
		{'Lost (film)'},
		{'Lost (miniseries)'},
		{'Lost (serial)'},
		{'Lost (game show)'},
		{'Lost (talk show)'},
		{'Lost (web series)'},
		{'The (206)'},
		{'Cinderella (Apakah Cinta Hanyalah Mimpi?)'},
		{'How to Live with Your Parents (For the Rest of Your Life)'},
		{'I (Almost) Got Away With It'},
		{'Monty Python: Almost the Truth (Lawyers Cut)'},
		{'Randall and Hopkirk (Deceased)'}
	})
end

return p