aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/compat53/tests/test-bit32.lua
diff options
context:
space:
mode:
authorLibravatarLibravatar daurnimator <quae@daurnimator.com> 2020-07-09 22:56:47 +1000
committerLibravatarLibravatar daurnimator <quae@daurnimator.com> 2020-07-09 22:56:47 +1000
commit1baeacb17e1dccc843a0f25579a22c68d5a8a1e1 (patch)
treeb68489fd969b5762e9ebf34b5b9c6076879a8daa /vendor/compat53/tests/test-bit32.lua
parentd826b20c71398e2e77c1cfe4e90086d8a72f3414 (diff)
parentde60088d19ff006b4feceb780e97a15611fe2905 (diff)
downloadluaossl-1baeacb17e1dccc843a0f25579a22c68d5a8a1e1.tar.gz
luaossl-1baeacb17e1dccc843a0f25579a22c68d5a8a1e1.tar.bz2
luaossl-1baeacb17e1dccc843a0f25579a22c68d5a8a1e1.zip
Merge lua-compat-5.3 v0.9
Diffstat (limited to 'vendor/compat53/tests/test-bit32.lua')
-rwxr-xr-xvendor/compat53/tests/test-bit32.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/vendor/compat53/tests/test-bit32.lua b/vendor/compat53/tests/test-bit32.lua
new file mode 100755
index 0000000..cc91e52
--- /dev/null
+++ b/vendor/compat53/tests/test-bit32.lua
@@ -0,0 +1,9 @@
+#!/usr/bin/env lua
+
+local bit32 = require("bit32")
+
+
+assert(bit32.bnot(0) == 2^32-1)
+assert(bit32.band(1, 3, 5) == 1)
+assert(bit32.bor(1, 3, 5) == 7)
+