summaryrefslogtreecommitdiff
path: root/test/test_version.lua
blob: 21019002edaf658e56c5a819d1cc0c924f2d3df0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
local llthreads = require"llthreads"

local a,b,c,d = llthreads.version()

local str = ("%d.%d.%d"):format(a,b,c)
if d then str = str .. "-" .. d end

assert(str == llthreads._VERSION,
  tostring(str) .. " is not eaqual to " .. tostring(llthreads._VERSION)
)

print("Done!")