diff options
Diffstat (limited to 'deps/v8/test/mjsunit/math-min-max.js')
-rw-r--r-- | deps/v8/test/mjsunit/math-min-max.js | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/deps/v8/test/mjsunit/math-min-max.js b/deps/v8/test/mjsunit/math-min-max.js index 13d54a35a..0833c5c80 100644 --- a/deps/v8/test/mjsunit/math-min-max.js +++ b/deps/v8/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)); |