You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

45 lines
622 B

/* Empty strings must be treated as equal. Because there is a special
* code path for these, test as a special case.
*/
/*===
false
true
false
true
true
false
true
false
true
true
false
false
false
true
false
true
===*/
try {
print('' < '');
print('' <= '');
print('' > '');
print('' >= '');
print('' == '');
print('' != '');
print('' === '');
print('' !== '');
print('' < 'foo');
print('' <= 'foo');
print('' > 'foo');
print('' >= 'foo');
print('' == 'foo');
print('' != 'foo');
print('' === 'foo');
print('' !== 'foo');
} catch (e) {
print(e);
}