summaryrefslogtreecommitdiffstats
blob: 0afa3fa9965c753a0c8e35995c17ce6a6a0756bc (plain)
1
2
3
4
5
6
-- Test connect with function parameter
client = sluift.new_client(os.getenv("SLUIFT_JID"), os.getenv("SLUIFT_PASS"))
x, y, z = client:connect(function (c) return 1, '2', true end)
assert(x == 1)
assert(y == '2')
assert(z == true)