diff --git a/dlls/jscript/tests/lang.js b/dlls/jscript/tests/lang.js index d66e887d8d..71dd2aae3d 100644 --- a/dlls/jscript/tests/lang.js +++ b/dlls/jscript/tests/lang.js @@ -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();