From 5bb6a11dcb6f8c1185b892d182eba5ed17550c07 Mon Sep 17 00:00:00 2001 From: "rogerl%netscape.com" Date: Fri, 29 Oct 1999 22:48:33 +0000 Subject: [PATCH] New ECMA spec for no argument calls to max & min - should return +/- Inf --- js/tests/ecma/Math/15.8.2.11.js | 2 +- js/tests/ecma/Math/15.8.2.12.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/tests/ecma/Math/15.8.2.11.js b/js/tests/ecma/Math/15.8.2.11.js index aa7b09d321a..c5043e304ef 100644 --- a/js/tests/ecma/Math/15.8.2.11.js +++ b/js/tests/ecma/Math/15.8.2.11.js @@ -49,7 +49,7 @@ function getTestCases() { array[item++] = new TestCase( SECTION, "Math.max.length", 2, Math.max.length ); - array[item++] = new TestCase( SECTION, "Math.max()", Number.NaN, Math.max() ); + array[item++] = new TestCase( SECTION, "Math.max()", -Infinity, Math.max() ); array[item++] = new TestCase( SECTION, "Math.max(void 0, 1)", Number.NaN, Math.max( void 0, 1 ) ); array[item++] = new TestCase( SECTION, "Math.max(void 0, void 0)", Number.NaN, Math.max( void 0, void 0 ) ); array[item++] = new TestCase( SECTION, "Math.max(null, 1)", 1, Math.max( null, 1 ) ); diff --git a/js/tests/ecma/Math/15.8.2.12.js b/js/tests/ecma/Math/15.8.2.12.js index 8e160883b1d..86a1dadab42 100644 --- a/js/tests/ecma/Math/15.8.2.12.js +++ b/js/tests/ecma/Math/15.8.2.12.js @@ -50,7 +50,7 @@ function getTestCases() { array[item++] = new TestCase( SECTION, "Math.min.length", 2, Math.min.length ); - array[item++] = new TestCase( SECTION, "Math.min()", Number.NaN, Math.min() ); + array[item++] = new TestCase( SECTION, "Math.min()", Infinity, Math.min() ); array[item++] = new TestCase( SECTION, "Math.min(void 0, 1)", Number.NaN, Math.min( void 0, 1 ) ); array[item++] = new TestCase( SECTION, "Math.min(void 0, void 0)", Number.NaN, Math.min( void 0, void 0 ) ); array[item++] = new TestCase( SECTION, "Math.min(null, 1)", 0, Math.min( null, 1 ) );