Module:Protect/testcases: Difference between revisions

Content deleted Content added
.
.
Line 18:
 
function p:test_protect()
self:equals(
'Keep ___location',
protect(error, {removeLocation = false})('foo', 3),
self.frame:preprocess('{{Error|Error: Module:Protect/testcases:49: foo}}')
)
 
self:equals(
'.',
Line 82 ⟶ 88:
protect(error)('foo', 3),
self.frame:preprocess('{{Error|Error: foo}}')
)
 
self:equals(
'Keep ___location',
protect(error, {removeLocation = false})('foo', 3),
self.frame:preprocess('{{Error|Error: Module:Protect/testcases:49: foo}}')
)
 
self:equals(
'Keep ___location',
protect(error, {removeLocation = false})('foo', 3),
self.frame:preprocess('{{Error|Error: Module:Protect/testcases:49: foo}}')
)
end