diff options
Diffstat (limited to 'tests/test_utils/test_assert.lua')
| -rw-r--r-- | tests/test_utils/test_assert.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/test_utils/test_assert.lua b/tests/test_utils/test_assert.lua index 42a276d87..4a97cb3ac 100644 --- a/tests/test_utils/test_assert.lua +++ b/tests/test_utils/test_assert.lua @@ -48,9 +48,11 @@ end test_assert._will_raise_stack = {} function test_assert:will_raise(func, message_pattern) table.insert(self._will_raise_stack, 1, debug.getinfo(2).func) - try{ + try + { func, - finally{ + finally + { function (ok, error) local funcs = { func, unpack(self._will_raise_stack) } if ok then @@ -67,4 +69,4 @@ end function main(context) table.join2(context, test_assert) return context -end
\ No newline at end of file +end |
