mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 13:10:28 +00:00
jscript: Added NaN comparation tests.
This commit is contained in:
parent
142cffc249
commit
9d5139f4d9
@ -820,4 +820,16 @@ ok(+"Infinity" === Infinity, "+'Infinity' !== Infinity");
|
||||
ok(+" Infinity " === Infinity, "+' Infinity ' !== Infinity");
|
||||
ok(+"-Infinity" === -Infinity, "+'-Infinity' !== -Infinity");
|
||||
|
||||
ok((NaN !== NaN) === true, "(NaN !== NaN) !== true");
|
||||
ok((NaN === NaN) === false, "(NaN === NaN) !== false");
|
||||
ok((Infinity !== NaN) === true, "(Infinity !== NaN) !== true");
|
||||
ok((Infinity !== NaN) === true, "(Infinity !== NaN) !== true");
|
||||
ok((0 === NaN) === false, "(0 === NaN) !== false");
|
||||
|
||||
ok((NaN != NaN) === true, "(NaN !== NaN) != true");
|
||||
ok((NaN == NaN) === false, "(NaN === NaN) != false");
|
||||
ok((Infinity != NaN) === true, "(Infinity != NaN) !== true");
|
||||
ok((Infinity != NaN) === true, "(Infinity != NaN) !== true");
|
||||
ok((0 == NaN) === false, "(0 === NaN) != false");
|
||||
|
||||
reportSuccess();
|
||||
|
Loading…
Reference in New Issue
Block a user