Files
asarium 11483057e5 Add unit tests
This also fixes the toggleBit function which was broken until now.
2016-10-13 12:22:47 +02:00

5 lines
100 B
Lua

assert(bit.XOR(0xF, 0xF) == 0x0)
assert(bit.XOR(0x2, 0x1) == 0x3)
assert(bit.XOR(0x0, 0x0) == 0x0)