Espruino/tests/test_integer_literals.js
Gordon Williams 932bbf0dec fix tests
2014-01-16 11:50:21 +00:00

18 lines
216 B
JavaScript

var tests=0, testpass=0;
function t(x) {
console.log(x);
tests++;
if (x) testpass++;
}
t( 0x01 === 1);
t( 0X01 === 1);
t( 0b01 === 1);
t( 0B01 === 1);
t( 0o01 === 1);
t( 0O01 === 1);
result = tests==testpass;