Software /
code /
prosody
Comparison
spec/util_bitcompat_spec.lua @ 13449:9912baa541c0
util.bit53: Add bnot() method
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 01 Mar 2024 17:22:29 +0000 |
parent | 12366:c640717e01ca |
comparison
equal
deleted
inserted
replaced
13448:93b4ce0115f0 | 13449:9912baa541c0 |
---|---|
22 end); | 22 end); |
23 | 23 |
24 it("lshift works", function () | 24 it("lshift works", function () |
25 assert.equal(0xFF00, bit.lshift(0xFF, 8)); | 25 assert.equal(0xFF00, bit.lshift(0xFF, 8)); |
26 end); | 26 end); |
27 | |
28 it("bnot works", function () | |
29 assert.equal(0x0000FF00, bit.band(0xFFFFFFFF, bit.bnot(0xFFFF00FF))); | |
30 end); | |
27 end); | 31 end); |