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

15 lines
157 B
JavaScript

// String equals with null
var tests = [
"\0" == "\0",
!("\0A" == "\0B"),
"\0A" != "\0B",
];
result = 1;
for (i in tests)
if (!tests[i])
result=0;