aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/basic.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/basic.lua b/test/basic.lua
new file mode 100644
index 0000000..4ec72c4
--- /dev/null
+++ b/test/basic.lua
@@ -0,0 +1,8 @@
+require "luaevent"
+
+print("Version:", luaevent._NAME.." "..luaevent._VERSION)
+print("libevent version:", luaevent.core.libevent_version())
+print("")
+base = luaevent.core.new()
+print("Testing creating base object:", type(base) == "userdata" and "OK" or "FAIL")
+print("libevent backend:", base:method())