From 7e2b0b5e5f55cac22fbd9237bf1c354df134802c Mon Sep 17 00:00:00 2001 From: Philipp Janda Date: Thu, 9 Jul 2020 01:24:17 +0200 Subject: Add bit32 library --- tests/test-bit32.lua | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100755 tests/test-bit32.lua (limited to 'tests') diff --git a/tests/test-bit32.lua b/tests/test-bit32.lua new file mode 100755 index 0000000..cc91e52 --- /dev/null +++ b/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) + -- cgit v1.2.3-55-g6feb