-- @runtimes lua54 local h = require("harness") local m = require("main") h.describe("位运算", function() h.it("掩码与移位", function() local result = m.run(function() end) h.eq(result.masked, 0x34) h.eq(result.shifted, 0x123) end) h.it("按位取反是补码", function() local result = m.run(function() end) h.eq(result.inverted, -1) end) end) h.run()