aboutsummaryrefslogtreecommitdiffstats
path: root/test/basic.lua
blob: 4ec72c4439ad1d7a7780d1bf06d94baf12217ca5 (plain)
1
2
3
4
5
6
7
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())