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"); |
} |