aboutsummaryrefslogblamecommitdiffstats
path: root/vendor/compat53/tests/test-bit32.lua
blob: cc91e52a8a6f112e46f68a83a9e170f15b26f0ce (plain) (tree)
1
2
3
4
5
6
7
8
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)