Files
fs2open.github.com/test/test_data/scripting/bitops/addBit/data/scripts/test.lua
T
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
95 B
Lua

assert(bit.addBit(0xE, 0) == 0xF)
assert(bit.addBit(0, 0) == 1)
assert(bit.addBit(1, 0) == 1)