From 6f8c0f3abda585b3ee1d87e3b8e19c729b52b4a6 Mon Sep 17 00:00:00 2001 From: Andrew D. France Date: Mon, 14 Jul 2025 17:51:23 -0500 Subject: Added compat53 support and fixed bugged non-interactive mode --- lib/compat53/tests/test-bit32.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100755 lib/compat53/tests/test-bit32.lua (limited to 'lib/compat53/tests/test-bit32.lua') diff --git a/lib/compat53/tests/test-bit32.lua b/lib/compat53/tests/test-bit32.lua new file mode 100755 index 0000000..a408b7d --- /dev/null +++ b/lib/compat53/tests/test-bit32.lua @@ -0,0 +1,10 @@ +#!/usr/bin/env lua + +local bit32 = require("bit32") + + +assert(bit32.bnot(0) == 2^32-1) +assert(bit32.bnot(-1) == 0) +assert(bit32.band(1, 3, 5) == 1) +assert(bit32.bor(1, 3, 5) == 7) + -- cgit v1.2.3-59-g8ed1b