more fiddling with string.rep

This commit is contained in:
kikito
2013-09-03 11:53:41 +02:00
parent b22efe1ca8
commit 95069bd456
2 changed files with 8 additions and 1 deletions

View File

@@ -33,6 +33,11 @@ describe('sandbox', function()
assert.equal('hellohello', string.rep('hello', 2))
end)
it('restores string.rep even if there is an error', function()
assert.has_error(function() sandbox("error('foo')") end)
assert.equal('hellohello', string.rep('hello', 2))
end)
end)