Index: test/mjsunit/math-min-max.js |
diff --git a/test/mjsunit/math-min-max.js b/test/mjsunit/math-min-max.js |
index 13d54a35a91f2899392d1ad54475470294269473..0833c5c8099e74b439a2a90f51ea9555ce87101e 100644 |
--- a/test/mjsunit/math-min-max.js |
+++ b/test/mjsunit/math-min-max.js |
@@ -76,9 +76,9 @@ assertEquals(-1, Math.min(+0, -0, -1)); |
assertEquals(-1, Math.min(-1, +0, -0)); |
assertEquals(-1, Math.min(+0, -1, -0)); |
assertEquals(-1, Math.min(-0, -1, +0)); |
-assertNaN(Math.min('oxen')); |
-assertNaN(Math.min('oxen', 1)); |
-assertNaN(Math.min(1, 'oxen')); |
+assertEquals(NaN, Math.min('oxen')); |
+assertEquals(NaN, Math.min('oxen', 1)); |
+assertEquals(NaN, Math.min(1, 'oxen')); |
// Test Math.max(). |
@@ -109,9 +109,9 @@ assertEquals(1, Math.max(+0, -0, +1)); |
assertEquals(1, Math.max(+1, +0, -0)); |
assertEquals(1, Math.max(+0, +1, -0)); |
assertEquals(1, Math.max(-0, +1, +0)); |
-assertNaN(Math.max('oxen')); |
-assertNaN(Math.max('oxen', 1)); |
-assertNaN(Math.max(1, 'oxen')); |
+assertEquals(NaN, Math.max('oxen')); |
+assertEquals(NaN, Math.max('oxen', 1)); |
+assertEquals(NaN, Math.max(1, 'oxen')); |
assertEquals(Infinity, 1/Math.max(ZERO, -0)); |
assertEquals(Infinity, 1/Math.max(-0, ZERO)); |