Module:GetShortDescription/testcases: Difference between revisions

Content deleted Content added
handling of unknown params in explicit short descriptions...
+ cases of two short descs defined in one template + complex unknown params found
Line 40:
function p:test__unknown_param_found()
self:preprocess_equals('{{#invoke:GetShortDescription|main|name=User:Fred Gandt/sandbox/explicit short description with unknown params}}', "Explicit short description with unknown params")
end
 
function p:test__complex_unknown_params_found()
self:preprocess_equals('{{#invoke:GetShortDescription|main|name=User:Fred Gandt/sandbox/explicit short description with complex unknown params}}', "Explicit short description with complex unknown params")
end
 
--[[ two short descriptions ]]
 
function p:test__two_short_descriptions_numbered_after()
self:preprocess_equals('{{#invoke:GetShortDescription|main|name=User:Fred Gandt/sandbox/two explicit short descriptions numbered after}}', "Explicit short description numbered after")
end
 
function p:test__two_short_descriptions_numbered_before()
self:preprocess_equals('{{#invoke:GetShortDescription|main|name=User:Fred Gandt/sandbox/two explicit short descriptions numbered before}}', "Explicit short description")
end