aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/sputnik_converted/15_Native/15.8_The_Math_Object/15.8.2_Function_Properties_of_the_Math_Object/15.8.2.12_min/S15.8.2.12_A2.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/sputnik_converted/15_Native/15.8_The_Math_Object/15.8.2_Function_Properties_of_the_Math_Object/15.8.2.12_min/S15.8.2.12_A2.js')
-rw-r--r--test/suite/sputnik_converted/15_Native/15.8_The_Math_Object/15.8.2_Function_Properties_of_the_Math_Object/15.8.2.12_min/S15.8.2.12_A2.js84
1 files changed, 0 insertions, 84 deletions
diff --git a/test/suite/sputnik_converted/15_Native/15.8_The_Math_Object/15.8.2_Function_Properties_of_the_Math_Object/15.8.2.12_min/S15.8.2.12_A2.js b/test/suite/sputnik_converted/15_Native/15.8_The_Math_Object/15.8.2_Function_Properties_of_the_Math_Object/15.8.2.12_min/S15.8.2.12_A2.js
deleted file mode 100644
index b9ffa0c53..000000000
--- a/test/suite/sputnik_converted/15_Native/15.8_The_Math_Object/15.8.2_Function_Properties_of_the_Math_Object/15.8.2.12_min/S15.8.2.12_A2.js
+++ /dev/null
@@ -1,84 +0,0 @@
-// Copyright 2009 the Sputnik authors. All rights reserved.
-// This code is governed by the BSD license found in the LICENSE file.
-
-/**
- * @name: S15.8.2.12_A2;
- * @section: 15.8.2.12;
- * @assertion: If any value is NaN, the result of Math.min is NaN;
- * @description: The script tests Math.min giving 1, 2 and 3 arguments to the function where at least one of the arguments is NaN
- */
-
-
-// Converted for Test262 from original Sputnik source
-
-ES5Harness.registerTest( {
-id: "S15.8.2.12_A2",
-
-path: "TestCases/15_Native/15.8_The_Math_Object/15.8.2_Function_Properties_of_the_Math_Object/15.8.2.12_min/S15.8.2.12_A2.js",
-
-assertion: "If any value is NaN, the result of Math.min is NaN",
-
-description: "The script tests Math.min giving 1, 2 and 3 arguments to the function where at least one of the arguments is NaN",
-
-test: function testcase() {
- // CHECK#1
-if (!isNaN(Math.min(NaN)))
-{
- $ERROR("#1: 'isNaN(Math.min(NaN)) === false");
-}
-
-// CHECK#2
-vals = new Array();
-vals[0] = -Infinity;
-vals[1] = -0.000000000000001;
-vals[2] = -0;
-vals[3] = +0
-vals[4] = 0.000000000000001;
-vals[5] = +Infinity;
-vals[6] = NaN;
-valnum = 7;
-
-args = new Array();
-for (i = 0; i <= 1; i++)
-{
- args[i] = NaN;
- for (j = 0; j < valnum; j++)
- {
- args[1-i] = vals[j];
- if (!isNaN(Math.min(args[0], args[1])))
- {
- $ERROR("#2: 'isNaN(Math.min(" + args[0] + ", " + args[1] + ")) === false");
- }
- }
-}
-
-// CHECK #3
-var k = 1;
-var l = 2;
-for (i = 0; i <= 2; i++)
-{
- args[i] = NaN;
- if (i === 1)
- {
- k = 0;
- } else if (i === 2)
- {
- l = 1;
- }
- for (j = 0; j < valnum; j++)
- {
- for (jj = 0; jj < valnum; jj++)
- {
- args[k] = vals[j];
- args[l] = vals[jj];
- if (!isNaN(Math.min(args[0], args[1], args[2])))
- {
- $ERROR("#3: 'isNaN(Math.min(" + args[0] + ", " + args[1] + ", " + args[2] + ")) === false");
- }
- }
- }
-}
-
- }
-});
-