mirror of https://github.com/svaarala/duktape.git
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
45 lines
622 B
12 years ago
|
/* 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
|
||
12 years ago
|
true
|
||
|
true
|
||
|
false
|
||
|
false
|
||
|
false
|
||
|
true
|
||
|
false
|
||
|
true
|
||
12 years ago
|
===*/
|
||
|
|
||
|
try {
|
||
|
print('' < '');
|
||
|
print('' <= '');
|
||
|
print('' > '');
|
||
|
print('' >= '');
|
||
|
print('' == '');
|
||
|
print('' != '');
|
||
|
print('' === '');
|
||
|
print('' !== '');
|
||
12 years ago
|
|
||
|
print('' < 'foo');
|
||
|
print('' <= 'foo');
|
||
|
print('' > 'foo');
|
||
|
print('' >= 'foo');
|
||
|
print('' == 'foo');
|
||
|
print('' != 'foo');
|
||
|
print('' === 'foo');
|
||
|
print('' !== 'foo');
|
||
12 years ago
|
} catch (e) {
|
||
|
print(e);
|
||
|
}
|