Content deleted Content added
. |
. |
||
(8 intermediate revisions by the same user not shown) | |||
Line 18:
function p:test_protect()
self:equals(▼
'Keep ___location',▼
protect(error, {removeLocation = false})('foo', 3),▼
)▼
self:equals(
'.',
Line 27 ⟶ 33:
'.',
protect(o.f1)(o, 'Foo'),
)
Line 33 ⟶ 39:
':',
protect(o.f2)('Foo'),
self.frame:preprocess('{{Error|Error: missing argument}}')
)
Line 42 ⟶ 48:
)
protect(o.f2)
protect(o.f2)
local a = o.f2
local b = o.f2
self:equals(
'Success',
Line 82 ⟶ 93:
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}}')
)
end
|