mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
18 lines
216 B
JavaScript
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;
|