aboutsummaryrefslogtreecommitdiff
path: root/test/excepttest.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/excepttest.lua')
-rw-r--r--test/excepttest.lua6
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 @@
1local socket = require("socket")
2try = socket.newtry(function()
3 print("finalized!!!")
4end)
5try = socket.protect(try)
6print(try(nil, "it works"))