diff options
Diffstat (limited to 'test/test_version.lua')
-rw-r--r-- | test/test_version.lua | 13 |
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 @@ | |||
1 | local llthreads = require"llthreads" | ||
2 | |||
3 | local a,b,c,d = llthreads.version() | ||
4 | |||
5 | local str = ("%d.%d.%d"):format(a,b,c) | ||
6 | if d then str = str .. "-" .. d end | ||
7 | |||
8 | assert(str == llthreads._VERSION, | ||
9 | tostring(str) .. " is not eaqual to " .. tostring(llthreads._VERSION) | ||
10 | ) | ||
11 | |||
12 | print("Done!") | ||
13 | |||