Module:GetShortDescription/testcases: Difference between revisions

Content deleted Content added
derp; all the test functions should be named "test..."
fix a few errors in the test code
Line 7:
 
function p:test__no_name_param()
self:preprocess_equals('{{#invoke:GetShortDescription|main}}', "ERROR with invocation of [[Module:GetShortDescription]]: a page name (including namespace) MUST be provided")
end
 
function p:test__no_name_value()
self:preprocess_equals('{{#invoke:GetShortDescription|main|name=}}', "ERROR with invocation of [[Module:GetShortDescription]]: a page name (including namespace) MUST be provided")
end
 
Line 273:
 
function p:test__only_explicit__complex__numbered()
self:preprocess_equals('{{#invoke:GetShortDescription|main|name=User:Fred Gandt/sandbox/User:Fred Gandt/sandbox/explicit short description complex numbered|only=explicit}}', "explicit short description complex numbered")
end