Espruino/tests/test_string_comparisons_with_null_chars.js
Michael Duerinckx 7f5308590b Rename numbered tests to something more descriptive - closes #16
test077 is the only one I really couldn't figure out what it was meant
to test.
2014-03-01 22:15:28 +00: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;