Toggle menu
9
204
48
18.7K
KenshiDB
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.
Subpages:
Refer to
Module:If any equal



-- Unit tests for [[Module:{{ROOTPAGENAME}}]]. Click talk page to run tests.
local p = require('Module:UnitTests')

-- Example unit test.
function p:test_live()
	self:preprocess_equals('{{#invoke:If any equal|main|a|b|c|d|value=c}}', 'yes')
	self:preprocess_equals('{{#invoke:If any equal|main|a|b|c|d|value=r}}', 'no')
	self:preprocess_equals('{{#invoke:If any equal|main|a|b|c|d|value=}}', 'no')
	self:preprocess_equals('{{#invoke:If any equal|main|a|b|c|d|values=b}}', 'yes')
	self:preprocess_equals('{{#invoke:If any equal|main|a|b|c|d|values=q}}', 'no')
	self:preprocess_equals('{{#invoke:If any equal|main|a|b|c|d|values=f,c}}', 'yes')
	self:preprocess_equals('{{#invoke:If any equal|main|a|b|c|d|values=g,t,y}}', 'no')
	self:preprocess_equals('{{#invoke:If any equal|main|a|b|c|d|values=}}', 'no')
end

function p:test_sandbox()
	self:preprocess_equals('{{#invoke:If any equal/sandbox|main|a|b|c|d|value=c}}', 'yes')
	self:preprocess_equals('{{#invoke:If any equal/sandbox|main|a|b|c|d|value=r}}', 'no')
	self:preprocess_equals('{{#invoke:If any equal/sandbox|main|a|b|c|d|value=}}', 'no')
	self:preprocess_equals('{{#invoke:If any equal/sandbox|main|a|b|c|d|values=b}}', 'yes')
	self:preprocess_equals('{{#invoke:If any equal/sandbox|main|a|b|c|d|values=q}}', 'no')
	self:preprocess_equals('{{#invoke:If any equal/sandbox|main|a|b|c|d|values=f,c}}', 'yes')
	self:preprocess_equals('{{#invoke:If any equal/sandbox|main|a|b|c|d|values=g,t,y}}', 'no')
	self:preprocess_equals('{{#invoke:If any equal/sandbox|main|a|b|c|d|values=}}', 'no')
end

return p