Jacek Caban : jscript: Added NaN comparation tests.
Alexandre Julliard
julliard at winehq.org
Fri Oct 17 07:25:50 CDT 2008
Module: wine
Branch: master
Commit: 9d5139f4d97ba236e9f7bb75b81c3057cdb59eaa
URL: http://source.winehq.org/git/wine.git/?a=commit;h=9d5139f4d97ba236e9f7bb75b81c3057cdb59eaa
Author: Jacek Caban <jacek at codeweavers.com>
Date: Thu Oct 16 14:32:05 2008 -0500
jscript: Added NaN comparation tests.
---
dlls/jscript/tests/lang.js | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/dlls/jscript/tests/lang.js b/dlls/jscript/tests/lang.js
index d66e887..71dd2aa 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();
More information about the wine-cvs
mailing list