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.5_atan2/S15.8.2.5_A1.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.5_atan2/S15.8.2.5_A1.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.5_atan2/S15.8.2.5_A1.js52
1 files changed, 0 insertions, 52 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.5_atan2/S15.8.2.5_A1.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.5_atan2/S15.8.2.5_A1.js
deleted file mode 100644
index c35ee1e17..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.5_atan2/S15.8.2.5_A1.js
+++ /dev/null
@@ -1,52 +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.5_A1;
- * @section: 15.8.2.5;
- * @assertion: If either x or y is NaN, Math(x,y) is NaN;
- * @description: Checking if Math.atan2(NaN,y) and Math.atan2(x,NaN) is NaN for different x and y values;
- */
-
-
-// Converted for Test262 from original Sputnik source
-
-ES5Harness.registerTest( {
-id: "S15.8.2.5_A1",
-
-path: "TestCases/15_Native/15.8_The_Math_Object/15.8.2_Function_Properties_of_the_Math_Object/15.8.2.5_atan2/S15.8.2.5_A1.js",
-
-assertion: "If either x or y is NaN, Math(x,y) is NaN",
-
-description: "Checking if Math.atan2(NaN,y) and Math.atan2(x,NaN) is NaN for different x and y values",
-
-test: function testcase() {
- // CHECK#1
-
-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 < 2; i++)
-{
- args[i] = NaN;
- for (j = 0; j < valnum; j++)
- {
- args[1-i] = vals[j];
- if (!isNaN(Math.atan2(args[0], args[1])))
- {
- $ERROR("#1: isNaN(Math.atan2(" + args[0] + ", " + args[1] + ")) === false'");
- }
- }
-}
-
- }
-});
-