local N=import("\046\047\098\105\116\051\050")describe("\108\105\098\115\046\098\105\116\051\050",function()describe("\098\111\114",function()it("\115\104\111\117\108\100 \098\101 \097 \102\117\110\099\116\105\111\110",function()assert.is_function(N.bor)end)it("\115\104\111\117\108\100 \098\105\116\119\105\115\101 \079\082 \116\119\111 \118\097\108\117\101\115",function()assert.are.equals(7,N.bor(5,2))end)end)describe("\098\097\110\100",function()it("\115\104\111\117\108\100 \098\101 \097 \102\117\110\099\116\105\111\110",function()assert.is_function(N.band)end)it("\115\104\111\117\108\100 \098\105\116\119\105\115\101 \065\078\068 \116\119\111 \118\097\108\117\101\115",function()assert.are.equals(4,N.band(5,6))end)end)end)
local bit32 = import("./bit32")

describe("libs.bit32", function()
	describe("bor", function()
		it("should be a function", function()
			assert.is_function(bit32.bor)
		end)

		-- 101 -> 5
		-- 010 -> 2
		-- 101 | 010 = 111 -> 7
		it("should bitwise OR two values", function()
			assert.are.equals(7, bit32.bor(5, 2))
		end)
	end)

	describe("band", function()
		it("should be a function", function()
			assert.is_function(bit32.band)
		end)

		-- 101 -> 5
		-- 110 -> 6
		-- 101 & 110 = 100 -> 4
		it("should bitwise AND two values", function()
			assert.are.equals(4, bit32.band(5, 6))
		end)
	end)
end)