Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: test/mjsunit/compare-nan.js

Issue 151003: Add a compare stub on ARM. (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: '' Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/x64/codegen-x64.cc ('k') | test/mjsunit/html-comments.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test/mjsunit/compare-nan.js
===================================================================
--- test/mjsunit/compare-nan.js (revision 2284)
+++ test/mjsunit/compare-nan.js (working copy)
@@ -28,17 +28,17 @@
var a = [NaN, -1, 0, 1, 1.2, -7.9, true, false, 'foo', '0', 'NaN' ];
for (var i in a) {
var x = a[i];
- assertFalse(NaN == x);
- assertFalse(NaN === x);
- assertFalse(NaN < x);
- assertFalse(NaN > x);
- assertFalse(NaN <= x);
- assertFalse(NaN >= x);
+ assertFalse(NaN == x, "NaN == " + x);
+ assertFalse(NaN === x, "NaN === " + x);
+ assertFalse(NaN < x, "NaN < " + x);
+ assertFalse(NaN > x, "NaN > " + x);
+ assertFalse(NaN <= x, "NaN <= " + x);
+ assertFalse(NaN >= x, "NaN >= " + x);
- assertFalse(x == NaN);
- assertFalse(x === NaN);
- assertFalse(x < NaN);
- assertFalse(x > NaN);
- assertFalse(x <= NaN);
- assertFalse(x >= NaN);
+ assertFalse(x == NaN, "" + x + " == NaN");
+ assertFalse(x === NaN, "" + x + " === NaN");
+ assertFalse(x < NaN, "" + x + " < NaN");
+ assertFalse(x > NaN, "" + x + " > NaN");
+ assertFalse(x <= NaN, "" + x + " <= NaN");
+ assertFalse(x >= NaN, "" + x + " >= NaN");
}
« no previous file with comments | « src/x64/codegen-x64.cc ('k') | test/mjsunit/html-comments.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698