aboutsummaryrefslogtreecommitdiff
path: root/test/test_version.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_version.lua')
-rw-r--r--test/test_version.lua13
1 files changed, 13 insertions, 0 deletions
diff --git a/test/test_version.lua b/test/test_version.lua
new file mode 100644
index 0000000..2101900
--- /dev/null
+++ b/test/test_version.lua
@@ -0,0 +1,13 @@
1local llthreads = require"llthreads"
2
3local a,b,c,d = llthreads.version()
4
5local str = ("%d.%d.%d"):format(a,b,c)
6if d then str = str .. "-" .. d end
7
8assert(str == llthreads._VERSION,
9 tostring(str) .. " is not eaqual to " .. tostring(llthreads._VERSION)
10)
11
12print("Done!")
13