diff options
author | Alexey Melnichuk <mimir@newmail.ru> | 2015-01-19 13:15:10 +0400 |
---|---|---|
committer | Alexey Melnichuk <mimir@newmail.ru> | 2015-01-19 13:16:13 +0400 |
commit | 0b5ddda597e3cab29d04918319b52673695ee2d2 (patch) | |
tree | 7cda73ce075552215b2f7759bf4563f041c2f540 /test | |
parent | 7b05a0a79a6da66d85ec78e140fa425eb01d6ba0 (diff) | |
download | lua-llthreads2-0b5ddda597e3cab29d04918319b52673695ee2d2.tar.gz lua-llthreads2-0b5ddda597e3cab29d04918319b52673695ee2d2.tar.bz2 lua-llthreads2-0b5ddda597e3cab29d04918319b52673695ee2d2.zip |
Fix. Version on Lua 5.3
Diffstat (limited to 'test')
-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 | |||