Espruino/tests/test096.js
Gordon Williams f3d6e0bc83 First commit
2013-09-26 14:39:04 +01:00

15 lines
131 B
JavaScript

// Bitwise not
var tests = [
~2 == -3,
~0xFF == -256,
~-3 == 2,
];
result = 1;
for (i in tests)
if (!tests[i])
result=0;