diff options
author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-07-01 05:38:44 +0000 |
---|---|---|
committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2004-07-01 05:38:44 +0000 |
commit | 2562738e2db9d7654c48c10247e683215e09b4a5 (patch) | |
tree | 08dcd456594d76d5853e535a8a3b6ac1fdd27fdb /test/excepttest.lua | |
parent | 197aef23ce36844e86e732f26af1df9fc5f149da (diff) | |
download | luasocket-2562738e2db9d7654c48c10247e683215e09b4a5.tar.gz luasocket-2562738e2db9d7654c48c10247e683215e09b4a5.tar.bz2 luasocket-2562738e2db9d7654c48c10247e683215e09b4a5.zip |
Forgot a few files.
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")) | ||