aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/compat53/tests/test-bit32.lua
diff options
context:
space:
mode:
authorLibravatarLibravatar daurnimator <quae@daurnimator.com> 2020-07-09 23:00:31 +1000
committerLibravatarLibravatar daurnimator <quae@daurnimator.com> 2020-07-09 23:00:31 +1000
commit03b115b01613c76cc1ee88d9eba806ef5c54281a (patch)
treeb68489fd969b5762e9ebf34b5b9c6076879a8daa /vendor/compat53/tests/test-bit32.lua
parent2ae0a68ef20f638587a9423770e488198d703fd0 (diff)
parent1baeacb17e1dccc843a0f25579a22c68d5a8a1e1 (diff)
downloadluaossl-03b115b01613c76cc1ee88d9eba806ef5c54281a.tar.gz
luaossl-03b115b01613c76cc1ee88d9eba806ef5c54281a.tar.bz2
luaossl-03b115b01613c76cc1ee88d9eba806ef5c54281a.zip
Merge branch '5.4'
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)
+