зеркало из https://github.com/mozilla/pjs.git
New ECMA spec for no argument calls to max & min - should return +/- Inf
This commit is contained in:
Родитель
98e43cc9a1
Коммит
5bb6a11dcb
|
@ -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 ) );
|
||||
|
|
|
@ -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 ) );
|
||||
|
|
Загрузка…
Ссылка в новой задаче