diff options
Diffstat (limited to 'test/excepttest.lua')
-rw-r--r-- | test/excepttest.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/excepttest.lua b/test/excepttest.lua new file mode 100644 index 0000000..ce9f197 --- /dev/null +++ b/test/excepttest.lua | |||
@@ -0,0 +1,6 @@ | |||
1 | local socket = require("socket") | ||
2 | try = socket.newtry(function() | ||
3 | print("finalized!!!") | ||
4 | end) | ||
5 | try = socket.protect(try) | ||
6 | print(try(nil, "it works")) | ||