Module:GetShortDescription/testcases: Difference between revisions

Content deleted Content added
fix the test
fix more tests
Line 49:
 
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 aftersecond (used)")
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 unnumbered second (used)")
end
 
function p:test__two_short_description_templates()
self:preprocess_equals('{{#invoke:GetShortDescription|main|name=User:Fred Gandt/sandbox/two explicit short description templates}}', "Explicit short description second (used)")
end
 
function p:test__two_short_description_templates__first_noreplace()
self:preprocess_equals('{{#invoke:GetShortDescription|main|name=User:Fred Gandt/sandbox/two explicit short description templates first noreplace}}', "Explicit short description notsecond replaced(used)")
end
 
function p:test__two_short_description_templates__second_noreplace()
self:preprocess_equals('{{#invoke:GetShortDescription|main|name=User:Fred Gandt/sandbox/two explicit short description templates second noreplace}}', "Explicit short description notfirst replaced(used)")
end
 
function p:test__three_short_description_templates__second_noreplace()
self:preprocess_equals('{{#invoke:GetShortDescription|main|name=User:Fred Gandt/sandbox/three explicit short description templates second noreplace}}', "Explicit short description third (used)")
end