diff options
Diffstat (limited to 'test/suite/ch15/15.8/15.8.2')
138 files changed, 884 insertions, 1075 deletions
diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.1/S15.8.2.1_A1.js b/test/suite/ch15/15.8/15.8.2/15.8.2.1/S15.8.2.1_A1.js index d828fae96..42c0fe06d 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.1/S15.8.2.1_A1.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.1/S15.8.2.1_A1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is NaN, Math.abs(x) is NaN - * - * @path ch15/15.8/15.8.2/15.8.2.1/S15.8.2.1_A1.js - * @description Checking if Math.abs(NaN) is NaN - */ +/*--- +info: If x is NaN, Math.abs(x) is NaN +description: Checking if Math.abs(NaN) is NaN +---*/ // CHECK#1 var x = NaN; @@ -14,4 +12,3 @@ if (!isNaN(Math.abs(x))) { $ERROR("#1: 'var x=NaN; isNaN(Math.abs(x)) === false'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.1/S15.8.2.1_A2.js b/test/suite/ch15/15.8/15.8.2/15.8.2.1/S15.8.2.1_A2.js index a34300770..c0e9fe018 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.1/S15.8.2.1_A2.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.1/S15.8.2.1_A2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is -0, Math.abs(x) is +0 - * - * @path ch15/15.8/15.8.2/15.8.2.1/S15.8.2.1_A2.js - * @description Checking if Math.abs(-0) equals to +0 - */ +/*--- +info: If x is -0, Math.abs(x) is +0 +description: Checking if Math.abs(-0) equals to +0 +---*/ // CHECK#1 var x = -0; @@ -14,4 +12,3 @@ if (Math.abs(x) !== +0) { $ERROR("#1: 'var x=-0; Math.abs(x) !== +0'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.1/S15.8.2.1_A3.js b/test/suite/ch15/15.8/15.8.2/15.8.2.1/S15.8.2.1_A3.js index b30afca1b..3e8166b25 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.1/S15.8.2.1_A3.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.1/S15.8.2.1_A3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is -Infinity, Math.abs(x) is +Infinity - * - * @path ch15/15.8/15.8.2/15.8.2.1/S15.8.2.1_A3.js - * @description Checking if Math.abs(-Infinity) equals to +Infinity - */ +/*--- +info: If x is -Infinity, Math.abs(x) is +Infinity +description: Checking if Math.abs(-Infinity) equals to +Infinity +---*/ // CHECK#1 var x = -Infinity; @@ -14,4 +12,3 @@ if (Math.abs(x) !== +Infinity) { $ERROR("#1: 'var x=-Infinity; Math.abs(x) !== +Infinity'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.10/S15.8.2.10_A1.js b/test/suite/ch15/15.8/15.8.2/15.8.2.10/S15.8.2.10_A1.js index 46143c2a0..470cd1759 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.10/S15.8.2.10_A1.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.10/S15.8.2.10_A1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is NaN, Math.log(x) is NaN - * - * @path ch15/15.8/15.8.2/15.8.2.10/S15.8.2.10_A1.js - * @description Checking if Math.log(NaN) is NaN - */ +/*--- +info: If x is NaN, Math.log(x) is NaN +description: Checking if Math.log(NaN) is NaN +---*/ // CHECK#1 var x = NaN; @@ -14,4 +12,3 @@ if (!isNaN(Math.log(x))) { $ERROR("#1: 'var x=NaN; isNaN(Math.log(x)) === false'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.10/S15.8.2.10_A2.js b/test/suite/ch15/15.8/15.8.2/15.8.2.10/S15.8.2.10_A2.js index 494a73b66..2697f936c 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.10/S15.8.2.10_A2.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.10/S15.8.2.10_A2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is less than 0, Math.log(x) is NaN - * - * @path ch15/15.8/15.8.2/15.8.2.10/S15.8.2.10_A2.js - * @description Checking if Math.log(x) is NaN, where x is less than 0 - */ +/*--- +info: If x is less than 0, Math.log(x) is NaN +description: Checking if Math.log(x) is NaN, where x is less than 0 +---*/ // CHECK#1 var x = -0.000000000000001; @@ -28,4 +26,3 @@ if (!isNaN(Math.log(x))) { $ERROR("#1: 'var x=-Infinity; isNaN(Math.log(x)) === false'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.10/S15.8.2.10_A3.js b/test/suite/ch15/15.8/15.8.2/15.8.2.10/S15.8.2.10_A3.js index 426090c8f..5f082ff2d 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.10/S15.8.2.10_A3.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.10/S15.8.2.10_A3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is +0 or -0, Math.log(x) is -Infinity - * - * @path ch15/15.8/15.8.2/15.8.2.10/S15.8.2.10_A3.js - * @description Checking if Math.log(+0) and Math.log(-0) equals to -Infinity - */ +/*--- +info: If x is +0 or -0, Math.log(x) is -Infinity +description: Checking if Math.log(+0) and Math.log(-0) equals to -Infinity +---*/ // CHECK#1 var x = +0; @@ -21,4 +19,3 @@ if (Math.log(x) !== -Infinity) { $ERROR("#1: 'var x=-0; Math.log(x) !== -Infinity'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.10/S15.8.2.10_A4.js b/test/suite/ch15/15.8/15.8.2/15.8.2.10/S15.8.2.10_A4.js index af4e9c311..ddeac3512 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.10/S15.8.2.10_A4.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.10/S15.8.2.10_A4.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is 1, Math.log(x) is +0 - * - * @path ch15/15.8/15.8.2/15.8.2.10/S15.8.2.10_A4.js - * @description Checking if Math.log(1) equals to +0 - */ +/*--- +info: If x is 1, Math.log(x) is +0 +description: Checking if Math.log(1) equals to +0 +---*/ // CHECK#1 var x = 1; @@ -14,4 +12,3 @@ if (Math.log(x) !== +0) { $ERROR("#1: 'var x=1; Math.log(x) !== +0'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.10/S15.8.2.10_A5.js b/test/suite/ch15/15.8/15.8.2/15.8.2.10/S15.8.2.10_A5.js index 05cd7db47..d79e25e10 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.10/S15.8.2.10_A5.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.10/S15.8.2.10_A5.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is +Infinity, Math.log(x) is +Infinity - * - * @path ch15/15.8/15.8.2/15.8.2.10/S15.8.2.10_A5.js - * @description Checking if Math.log(+Infinity) equals to +Infinity - */ +/*--- +info: If x is +Infinity, Math.log(x) is +Infinity +description: Checking if Math.log(+Infinity) equals to +Infinity +---*/ // CHECK#1 var x = +Infinity; @@ -14,4 +12,3 @@ if (Math.log(x) !== +Infinity) { $ERROR("#1: 'var x=+Infinity; Math.log(x) !== +Infinity'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.10/S15.8.2.10_A6.js b/test/suite/ch15/15.8/15.8.2/15.8.2.10/S15.8.2.10_A6.js index 15f7abd7d..76443de65 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.10/S15.8.2.10_A6.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.10/S15.8.2.10_A6.js @@ -1,15 +1,18 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Math.log, recommended that implementations use the approximation algorithms for IEEE 754 arithmetic contained in fdlibm - * - * @path ch15/15.8/15.8.2/15.8.2.10/S15.8.2.10_A6.js - * @description Checking if Math.log is approximately equals to its mathematical values on the set of 64 argument values; all the sample values is calculated with LibC - */ - -$INCLUDE("math_precision.js"); -$INCLUDE("math_isequal.js"); +/*--- +info: > + Math.log, recommended that implementations use the approximation + algorithms for IEEE 754 arithmetic contained in fdlibm +description: > + Checking if Math.log is approximately equals to its mathematical + values on the set of 64 argument values; all the sample values is + calculated with LibC +includes: + - math_precision.js + - math_isequal.js +---*/ // CHECK#1 vnum = 64; @@ -157,4 +160,3 @@ for (i = 0; i < vnum; i++) $ERROR("\nx = " + x[i] + "\nlibc.log(x) = " + y[i] + "\nMath.log(x) = " + Math.log(x[i]) + "\nMath.abs(libc.log(x) - Math.log(x)) > " + prec + "\n\n"); } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.11/15.8.2.11-1.js b/test/suite/ch15/15.8/15.8.2/15.8.2.11/15.8.2.11-1.js index b6ce99935..ab0b45d79 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.11/15.8.2.11-1.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.11/15.8.2.11-1.js @@ -1,18 +1,15 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.8/15.8.2/15.8.2.11/15.8.2.11-1.js
- * @description Math.max({}) is NaN
- */
-
-
-
-
-
-function testcase() {
- return isNaN(Math.max({}));
-}
-runTestCase(testcase);
\ No newline at end of file +// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: Math.max({}) is NaN +includes: [runTestCase.js] +---*/ + +function testcase() { + return isNaN(Math.max({})); +} +runTestCase(testcase); diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.11/S15.8.2.11_A1.js b/test/suite/ch15/15.8/15.8.2/15.8.2.11/S15.8.2.11_A1.js index 741d35728..64b909b43 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.11/S15.8.2.11_A1.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.11/S15.8.2.11_A1.js @@ -1,16 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If no arguments are given, Math.max() is -Infinity - * - * @path ch15/15.8/15.8.2/15.8.2.11/S15.8.2.11_A1.js - * @description Checking if Math.max() equals to -Infinity - */ +/*--- +info: If no arguments are given, Math.max() is -Infinity +description: Checking if Math.max() equals to -Infinity +---*/ // CHECK#1 if (Math.max() != -Infinity) { $ERROR("#1: 'Math.max() != -Infinity'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.11/S15.8.2.11_A2.js b/test/suite/ch15/15.8/15.8.2/15.8.2.11/S15.8.2.11_A2.js index 512e60544..fa81a0d53 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.11/S15.8.2.11_A2.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.11/S15.8.2.11_A2.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If any value is NaN, the result of Math.max is NaN - * - * @path ch15/15.8/15.8.2/15.8.2.11/S15.8.2.11_A2.js - * @description The script tests Math.max giving 1, 2 and 3 arguments to the function where at least one of the arguments is NaN - */ +/*--- +info: If any value is NaN, the result of Math.max is NaN +description: > + The script tests Math.max giving 1, 2 and 3 arguments to the + function where at least one of the arguments is NaN +---*/ // CHECK#1 if (!isNaN(Math.max(NaN))) @@ -65,4 +65,3 @@ for (i = 0; i <= 2; i++) } } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.11/S15.8.2.11_A3.js b/test/suite/ch15/15.8/15.8.2/15.8.2.11/S15.8.2.11_A3.js index 906d9bf57..dd8068a22 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.11/S15.8.2.11_A3.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.11/S15.8.2.11_A3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * +0 is considered to be larger than -0 - * - * @path ch15/15.8/15.8.2/15.8.2.11/S15.8.2.11_A3.js - * @description Checking if Math.max(-0,+0) and Math.max(+0,-0) equals to +0 - */ +/*--- +info: +0 is considered to be larger than -0 +description: Checking if Math.max(-0,+0) and Math.max(+0,-0) equals to +0 +---*/ // CHECK#1 if (Math.max(-0, +0) !== +0) @@ -19,4 +17,3 @@ if (Math.max(+0, -0) !== +0) { $ERROR("#2: 'Math.max(+0, -0) !== +0'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.11/S15.8.2.11_A4.js b/test/suite/ch15/15.8/15.8.2/15.8.2.11/S15.8.2.11_A4.js index f6729a2ff..bde6ba006 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.11/S15.8.2.11_A4.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.11/S15.8.2.11_A4.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The length property of the Math.max method is 2 - * - * @path ch15/15.8/15.8.2/15.8.2.11/S15.8.2.11_A4.js - * @description Checking if Math.max.length property is defined and equals to 2 - */ +/*--- +info: The length property of the Math.max method is 2 +description: Checking if Math.max.length property is defined and equals to 2 +---*/ // CHECK#1 if (typeof Math.max !== "function") { @@ -22,4 +20,3 @@ if (typeof Math.max.length === "undefined") { if (Math.max.length !== 2) { $ERROR('#3: The length property of the Math.max method is not 2'); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.12/15.8.2.12-1.js b/test/suite/ch15/15.8/15.8.2/15.8.2.12/15.8.2.12-1.js index 4a612a65b..d00069bd2 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.12/15.8.2.12-1.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.12/15.8.2.12-1.js @@ -1,18 +1,15 @@ -/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.8/15.8.2/15.8.2.12/15.8.2.12-1.js
- * @description Math.min({}) is NaN
- */
-
-
-
-
-
-function testcase() {
- return isNaN(Math.min({}));
-}
-runTestCase(testcase);
\ No newline at end of file +// Copyright (c) 2012 Ecma International. All rights reserved. +// Ecma International makes this code available under the terms and conditions set +// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the +// "Use Terms"). Any redistribution of this code must retain the above +// copyright and this notice and otherwise comply with the Use Terms. + +/*--- +description: Math.min({}) is NaN +includes: [runTestCase.js] +---*/ + +function testcase() { + return isNaN(Math.min({})); +} +runTestCase(testcase); diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A1.js b/test/suite/ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A1.js index 94f87343b..339610893 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A1.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A1.js @@ -1,16 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If no arguments are given, Math.min() is +Infinity - * - * @path ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A1.js - * @description Checking if Math.min() equals to +Infinity - */ +/*--- +info: If no arguments are given, Math.min() is +Infinity +description: Checking if Math.min() equals to +Infinity +---*/ // CHECK#1 if (Math.min() != +Infinity) { $ERROR("#1: 'Math.min() != +Infinity'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A2.js b/test/suite/ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A2.js index 362958bd3..ba3215440 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A2.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A2.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If any value is NaN, the result of Math.min is NaN - * - * @path ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A2.js - * @description The script tests Math.min giving 1, 2 and 3 arguments to the function where at least one of the arguments is NaN - */ +/*--- +info: 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 +---*/ // CHECK#1 if (!isNaN(Math.min(NaN))) @@ -65,4 +65,3 @@ for (i = 0; i <= 2; i++) } } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A3.js b/test/suite/ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A3.js index 01150d8c2..218fe0388 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A3.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * +0 is considered to be larger than -0 - * - * @path ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A3.js - * @description Checking if Math.max(-0,+0) and Math.max(+0,-0) equals to -0 - */ +/*--- +info: +0 is considered to be larger than -0 +description: Checking if Math.max(-0,+0) and Math.max(+0,-0) equals to -0 +---*/ // CHECK#1 if (Math.max(-0, +0) !== -0) @@ -19,4 +17,3 @@ if (Math.max(+0, -0) !== -0) { $ERROR("#2: 'Math.max(+0, -0) !== -0'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A4.js b/test/suite/ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A4.js index d563445b5..906690857 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A4.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A4.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The length property of the Math.min method is 2 - * - * @path ch15/15.8/15.8.2/15.8.2.12/S15.8.2.12_A4.js - * @description Checking if Math.min.length property is defined and equals to 2 - */ +/*--- +info: The length property of the Math.min method is 2 +description: Checking if Math.min.length property is defined and equals to 2 +---*/ // CHECK#1 if (typeof Math.min !== "function") { @@ -22,4 +20,3 @@ if (typeof Math.min.length === "undefined") { if (Math.min.length !== 2) { $ERROR('#3: The length property of the Math.min method is not 2'); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A1.js b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A1.js index 3e60d5bd7..2034dcdc1 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A1.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If y is NaN, Math.pow(x,y) is NaN - * - * @path ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A1.js - * @description Checking if Math.pow(x,y) is NaN, where y is NaN - */ +/*--- +info: If y is NaN, Math.pow(x,y) is NaN +description: Checking if Math.pow(x,y) is NaN, where y is NaN +---*/ // CHECK#1 @@ -30,4 +28,3 @@ for (i = 0; i < xnum; i++) $ERROR("#1: isNaN(Math.pow(" + x[i] + ", " + y + ")) === false"); } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A10.js b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A10.js index 427669056..9ed848608 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A10.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A10.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If abs(x)<1 and y is -Infinity, Math.pow(x,y) is +Infinity - * - * @path ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A10.js - * @description Checking if Math.pow(x,y) equals to +Infinity, where abs(x)<1 and y is -Infinity - */ +/*--- +info: If abs(x)<1 and y is -Infinity, Math.pow(x,y) is +Infinity +description: > + Checking if Math.pow(x,y) equals to +Infinity, where abs(x)<1 and + y is -Infinity +---*/ // CHECK#1 @@ -27,4 +27,3 @@ for (i = 0; i < xnum; i++) $ERROR("#1: Math.pow(" + x[i] + ", " + y + ") !== +Infinity"); } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A11.js b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A11.js index 0b2b93b32..ff96542ac 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A11.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A11.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is +Infinity and y>0, Math.pow(x,y) is +Infinity - * - * @path ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A11.js - * @description Checking if Math.pow(x,y) equals to +Infinity, where x is +Infinity and y>0 - */ +/*--- +info: If x is +Infinity and y>0, Math.pow(x,y) is +Infinity +description: > + Checking if Math.pow(x,y) equals to +Infinity, where x is + +Infinity and y>0 +---*/ // CHECK#1 @@ -25,4 +25,3 @@ for (i = 0; i < ynum; i++) $ERROR("#1: Math.pow(" + x + ", " + y[i] + ") !== +Infinity"); } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A12.js b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A12.js index 8fa5c81df..9caefb57b 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A12.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A12.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is +Infinity and y<0, Math.pow(x,y) is +0 - * - * @path ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A12.js - * @description Checking if Math.pow(x,y) equals to +0, where x is +Infinity and y<0 - */ +/*--- +info: If x is +Infinity and y<0, Math.pow(x,y) is +0 +description: > + Checking if Math.pow(x,y) equals to +0, where x is +Infinity and + y<0 +---*/ // CHECK#1 @@ -25,4 +25,3 @@ for (i = 0; i < ynum; i++) $ERROR("#1: Math.pow(" + x + ", " + y[i] + ") !== +0"); } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A13.js b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A13.js index 03813cf51..e6a5d54cd 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A13.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A13.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is -Infinity and y>0 and y is an odd integer, Math.pow(x,y) is -Infinity - * - * @path ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A13.js - * @description Checking if Math.pow(x,y) equals to -Infinity, where x is -Infinity and y>0 - */ +/*--- +info: > + If x is -Infinity and y>0 and y is an odd integer, Math.pow(x,y) is + -Infinity +description: > + Checking if Math.pow(x,y) equals to -Infinity, where x is + -Infinity and y>0 +---*/ // CHECK#1 @@ -24,4 +26,3 @@ for (i = 0; i < ynum; i++) $ERROR("#1: Math.pow(" + x + ", " + y[i] + ") !== -Infinity"); } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A14.js b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A14.js index 705a519a1..51bd37078 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A14.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A14.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is -Infinity and y>0 and y is NOT an odd integer, Math.pow(x,y) is +Infinity - * - * @path ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A14.js - * @description Checking if Math.pow(x,y) equals to +Infinity, where x is -Infinity and y>0 - */ +/*--- +info: > + If x is -Infinity and y>0 and y is NOT an odd integer, Math.pow(x,y) is + +Infinity +description: > + Checking if Math.pow(x,y) equals to +Infinity, where x is + -Infinity and y>0 +---*/ // CHECK#1 @@ -26,4 +28,3 @@ for (i = 0; i < ynum; i++) $ERROR("#1: Math.pow(" + x + ", " + y[i] + ") !== +Infinity"); } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A15.js b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A15.js index 5611285c8..cea4591cb 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A15.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A15.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is -Infinity and y<0 and y is an odd integer, Math.pow(x,y) is -0 - * - * @path ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A15.js - * @description Checking if Math.pow(x,y) equals to -0, where x is -Infinity and y<0 - */ +/*--- +info: If x is -Infinity and y<0 and y is an odd integer, Math.pow(x,y) is -0 +description: > + Checking if Math.pow(x,y) equals to -0, where x is -Infinity and + y<0 +---*/ // CHECK#1 @@ -24,4 +24,3 @@ for (i = 0; i < ynum; i++) $ERROR("#1: Math.pow(" + x + ", " + y[i] + ") !== -0"); } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A16.js b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A16.js index 48d92a917..f7bbcbaff 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A16.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A16.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is -Infinity and y<0 and y is NOT an odd integer, Math.pow(x,y) is +0 - * - * @path ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A16.js - * @description Checking if Math.pow(x,y) equals to +0, where x is -Infinity and y<0 - */ +/*--- +info: If x is -Infinity and y<0 and y is NOT an odd integer, Math.pow(x,y) is +0 +description: > + Checking if Math.pow(x,y) equals to +0, where x is -Infinity and + y<0 +---*/ // CHECK#1 @@ -26,4 +26,3 @@ for (i = 0; i < ynum; i++) $ERROR("#1: Math.pow(" + x + ", " + y[i] + ") !== +0"); } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A17.js b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A17.js index 4826b3fb9..8009d9d63 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A17.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A17.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is +0 and y>0, Math.pow(x,y) is +0 - * - * @path ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A17.js - * @description Checking if Math.pow(x,y) equals to +0, where x is +0 and y>0 - */ +/*--- +info: If x is +0 and y>0, Math.pow(x,y) is +0 +description: Checking if Math.pow(x,y) equals to +0, where x is +0 and y>0 +---*/ // CHECK#1 @@ -25,4 +23,3 @@ for (i = 0; i < ynum; i++) $ERROR("#1: Math.pow(" + x + ", " + y[i] + ") !== +0"); } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A18.js b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A18.js index 186ef2be7..c51ffbb49 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A18.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A18.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is +0 and y<0, Math.pow(x,y) is +Infinity - * - * @path ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A18.js - * @description Checking if Math.pow(x,y) equals to +Infinity, where x is +0 and y<0 - */ +/*--- +info: If x is +0 and y<0, Math.pow(x,y) is +Infinity +description: > + Checking if Math.pow(x,y) equals to +Infinity, where x is +0 and + y<0 +---*/ // CHECK#1 @@ -25,4 +25,3 @@ for (i = 0; i < ynum; i++) $ERROR("#1: Math.pow(" + x + ", " + y[i] + ") !== +Infinity"); } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A19.js b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A19.js index 793223661..da2efc15d 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A19.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A19.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is -0 and y>0 and y is an odd integer, Math.pow(x,y) is -0 - * - * @path ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A19.js - * @description Checking if Math.pow(x,y) equals to -0, where x is -0 and y>0 - */ +/*--- +info: If x is -0 and y>0 and y is an odd integer, Math.pow(x,y) is -0 +description: Checking if Math.pow(x,y) equals to -0, where x is -0 and y>0 +---*/ // CHECK#1 @@ -24,4 +22,3 @@ for (i = 0; i < ynum; i++) $ERROR("#1: Math.pow(" + x + ", " + y[i] + ") !== -0"); } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A2.js b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A2.js index 653651a24..ab9571fc7 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A2.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A2.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If y is +0, Math.pow(x,y) is 1, even if x is NaN - * - * @path ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A2.js - * @description Checking if Math.pow(x,y) equals to 1, where y is +0 and x is number or NaN - */ +/*--- +info: If y is +0, Math.pow(x,y) is 1, even if x is NaN +description: > + Checking if Math.pow(x,y) equals to 1, where y is +0 and x is + number or NaN +---*/ // CHECK#1 @@ -30,4 +30,3 @@ for (i = 0; i < xnum; i++) $ERROR("#1: Math.pow(" + x[i] + ", " + y + ") !== 1"); } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A20.js b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A20.js index 730d1dec3..c1fa35c6a 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A20.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A20.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is -0 and y>0 and y is NOT an odd integer, Math.pow(x,y) is +0 - * - * @path ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A20.js - * @description Checking if Math.pow(x,y) equals to +0, where x is -0 and y>0 and y is NOT an odd integer - */ +/*--- +info: If x is -0 and y>0 and y is NOT an odd integer, Math.pow(x,y) is +0 +description: > + Checking if Math.pow(x,y) equals to +0, where x is -0 and y>0 and + y is NOT an odd integer +---*/ // CHECK#1 @@ -26,4 +26,3 @@ for (i = 0; i < ynum; i++) $ERROR("#1: Math.pow(" + x + ", " + y[i] + ") !== +0"); } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A21.js b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A21.js index 556c46dd6..4a35bd952 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A21.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A21.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is -0 and y<0 and y is an odd integer, Math.pow(x,y) is -Infinity - * - * @path ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A21.js - * @description Checking if Math.pow(x,y) equals to -Infinity, where x is -0 and y is an odd integer - */ +/*--- +info: If x is -0 and y<0 and y is an odd integer, Math.pow(x,y) is -Infinity +description: > + Checking if Math.pow(x,y) equals to -Infinity, where x is -0 and y + is an odd integer +---*/ // CHECK#1 @@ -24,4 +24,3 @@ for (i = 0; i < ynum; i++) $ERROR("#1: Math.pow(" + x + ", " + y[i] + ") !== -Infinity"); } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A22.js b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A22.js index fb1eb0771..5d9be14f4 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A22.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A22.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is -0 and y<0 and y is NOT an odd integer, Math.pow(x,y) is +Infinity - * - * @path ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A22.js - * @description Checking if Math.pow(x,y) equals to +Infinity, where x is -0 and y<0 and y is NOT an odd integer - */ +/*--- +info: If x is -0 and y<0 and y is NOT an odd integer, Math.pow(x,y) is +Infinity +description: > + Checking if Math.pow(x,y) equals to +Infinity, where x is -0 and + y<0 and y is NOT an odd integer +---*/ // CHECK#1 @@ -26,4 +26,3 @@ for (i = 0; i < ynum; i++) $ERROR("#1: Math.pow(" + x + ", " + y[i] + ") !== +Infinity"); } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A23.js b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A23.js index 3ff4ef3a9..9c2b5f5ff 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A23.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A23.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x<0 and x is finite and y is finite and y is not an integer, Math.pow(x,y) is NaN - * - * @path ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A23.js - * @description Checking if Math.pow(x,y) is NaN, where x<0 and x is finite and y is finite and y is not an integer - */ +/*--- +info: > + If x<0 and x is finite and y is finite and y is not an integer, + Math.pow(x,y) is NaN +description: > + Checking if Math.pow(x,y) is NaN, where x<0 and x is finite and y + is finite and y is not an integer +---*/ // CHECK#1 @@ -32,4 +34,3 @@ for (i = 0; i < xnum; i++) for (j = 0; j < ynum; j++) if (!isNaN(Math.pow(x[i],y[j]))) $ERROR("#1: isNaN(Math.pow(" + x[i] + ", " + y[j] + ")) === false"); - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A24.js b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A24.js index 4ffd6b4e6..8e2aa4e86 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A24.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A24.js @@ -1,15 +1,18 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Math.pow, recommended that implementations use the approximation algorithms for IEEE 754 arithmetic contained in fdlibm - * - * @path ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A24.js - * @description Checking if Math.pow(argument1, argument2) is approximately equals to its mathematical value on the set of 64 argument1 values and 64 argument2 values; all the sample values is calculated with LibC - */ - -$INCLUDE("math_precision.js"); -$INCLUDE("math_isequal.js"); +/*--- +info: > + Math.pow, recommended that implementations use the approximation + algorithms for IEEE 754 arithmetic contained in fdlibm +description: > + Checking if Math.pow(argument1, argument2) is approximately equals + to its mathematical value on the set of 64 argument1 values and 64 + argument2 values; all the sample values is calculated with LibC +includes: + - math_precision.js + - math_isequal.js +---*/ // CHECK#1 vnum = 64; @@ -225,4 +228,3 @@ for (i = 0; i < vnum; i++) $ERROR("\nx1 = " + x1[i] + "\nx2 = " + x2[i] + "\nlibc.pow(x1,x2) = " + y[i] + "\nMath.pow(x1,x2) = " + Math.pow(x1[i], x2[i]) + "\nMath.abs(libc.pow(x1,x2) - Math.pow(x1,x2)) > " + prec + "\n\n"); } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A3.js b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A3.js index 5929d427c..b9c75b834 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A3.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A3.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If y is -0, Math.pow(x,y) is 1, even if x is NaN - * - * @path ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A3.js - * @description Checking if Math.pow(x,y) equals to 1, where x is number or NaN and y is -0 - */ +/*--- +info: If y is -0, Math.pow(x,y) is 1, even if x is NaN +description: > + Checking if Math.pow(x,y) equals to 1, where x is number or NaN + and y is -0 +---*/ // CHECK#1 @@ -30,4 +30,3 @@ for (i = 0; i < xnum; i++) $ERROR("#1: Math.pow(" + x[i] + ", -0) !== 1"); } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A4.js b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A4.js index f8a0c51bb..9f67d55ec 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A4.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A4.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is NaN and y is nonzero, Math.pow(x,y) is NaN - * - * @path ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A4.js - * @description Checking if Math.pow(x,y) is NaN, where x is NaN and y is nonzero - */ +/*--- +info: If x is NaN and y is nonzero, Math.pow(x,y) is NaN +description: Checking if Math.pow(x,y) is NaN, where x is NaN and y is nonzero +---*/ // CHECK#1 @@ -28,4 +26,3 @@ for (i = 0; i < ynum; i++) $ERROR("#1: isNaN(Math.pow(" + x + ", " + y[i] + ")) === false"); } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A5.js b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A5.js index d11b6178b..07f230386 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A5.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A5.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If abs(x)>1 and y is +Infinity, Math.pow(x,y) is +Infinity - * - * @path ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A5.js - * @description Checking if Math.pow(x,y) equals to +Infinity, where abs(x)>1 and y is +Infinity - */ +/*--- +info: If abs(x)>1 and y is +Infinity, Math.pow(x,y) is +Infinity +description: > + Checking if Math.pow(x,y) equals to +Infinity, where abs(x)>1 and + y is +Infinity +---*/ // CHECK#1 @@ -27,4 +27,3 @@ for (i = 0; i < xnum; i++) $ERROR("#1: Math.pow(" + x[i] + ", " + y + ") !== +Infinity"); } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A6.js b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A6.js index a5b816dc6..d9a263320 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A6.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A6.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If abs(x)>1 and y is -Infinity, Math.pow(x,y) is +0 - * - * @path ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A6.js - * @description Checking if Math.pow(x,y) equals to +0, where abs(x)>1 and y is -Infinity - */ +/*--- +info: If abs(x)>1 and y is -Infinity, Math.pow(x,y) is +0 +description: > + Checking if Math.pow(x,y) equals to +0, where abs(x)>1 and y is + -Infinity +---*/ // CHECK#1 @@ -27,4 +27,3 @@ for (i = 0; i < xnum; i++) $ERROR("#1: Math.pow(" + x[i] + ", " + y + ") !== +0"); } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A7.js b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A7.js index 7ab8b5599..1d0fb839d 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A7.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A7.js @@ -1,12 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If abs(x)==1 and y is +Infinity, Math.pow(x,y) is NaN - * - * @path ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A7.js - * @description Checking if Math.pow(x,y) is NaN, where abs(x)==1 and y is +Infinity - */ +/*--- +info: If abs(x)==1 and y is +Infinity, Math.pow(x,y) is NaN +description: > + Checking if Math.pow(x,y) is NaN, where abs(x)==1 and y is + +Infinity +includes: [$FAIL.js] +---*/ // CHECK#1 @@ -23,4 +24,3 @@ for (i = 0; i < xnum; i++) $FAIL("#1: isNaN(Math.pow(" + x[i] + ", " + y + ")) === false"); } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A8.js b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A8.js index 976fed4af..97a219a86 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A8.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A8.js @@ -1,12 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If abs(x)==1 and y is -Infinity, Math.pow(x,y) is NaN - * - * @path ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A8.js - * @description Checking if Math.pow(x,y) is NaN, where abs(x)==1 and y is -Infinity - */ +/*--- +info: If abs(x)==1 and y is -Infinity, Math.pow(x,y) is NaN +description: > + Checking if Math.pow(x,y) is NaN, where abs(x)==1 and y is + -Infinity +includes: [$FAIL.js] +---*/ // CHECK#1 @@ -23,4 +24,3 @@ for (i = 0; i < xnum; i++) $FAIL("#1: isNaN(Math.pow(" + x[i] + ", " + y + ")) === false"); } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A9.js b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A9.js index 01acce302..7f750627d 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A9.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A9.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If abs(x)<1 and y is +Infinity, Math.pow(x,y) is +0 - * - * @path ch15/15.8/15.8.2/15.8.2.13/S15.8.2.13_A9.js - * @description Checking if Math.pow(x,y) equals to +0, where abs(x)<1 and y is +Infinity - */ +/*--- +info: If abs(x)<1 and y is +Infinity, Math.pow(x,y) is +0 +description: > + Checking if Math.pow(x,y) equals to +0, where abs(x)<1 and y is + +Infinity +---*/ // CHECK#1 @@ -27,4 +27,3 @@ for (i = 0; i < xnum; i++) $ERROR("#1: Math.pow(" + x[i] + ", " + y + ") !== +0"); } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.14/S15.8.2.14_A1.js b/test/suite/ch15/15.8/15.8.2/15.8.2.14/S15.8.2.14_A1.js index c3679abcb..a6b8b4ed8 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.14/S15.8.2.14_A1.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.14/S15.8.2.14_A1.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Math.random() returns a number value with positive sign, greater than or equal to 0 but less than 1 - * - * @path ch15/15.8/15.8.2/15.8.2.14/S15.8.2.14_A1.js - * @description Checking if Math.random() is a number between 0 and 1, calling Math.random() 100 times - */ +/*--- +info: > + Math.random() returns a number value with positive sign, greater than or + equal to 0 but less than 1 +description: > + Checking if Math.random() is a number between 0 and 1, calling + Math.random() 100 times +---*/ // CHECK#1 for (i = 0; i < 100; i++) @@ -17,4 +19,3 @@ for (i = 0; i < 100; i++) $ERROR("#1: Math.random() = " + val); } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.15/S15.8.2.15_A1.js b/test/suite/ch15/15.8/15.8.2/15.8.2.15/S15.8.2.15_A1.js index bdb449fce..5c9476558 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.15/S15.8.2.15_A1.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.15/S15.8.2.15_A1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is NaN, Math.round(x) is NaN - * - * @path ch15/15.8/15.8.2/15.8.2.15/S15.8.2.15_A1.js - * @description Checking if Math.round(x) is NaN, where x is NaN - */ +/*--- +info: If x is NaN, Math.round(x) is NaN +description: Checking if Math.round(x) is NaN, where x is NaN +---*/ // CHECK#1 var x = NaN; @@ -14,4 +12,3 @@ if (!isNaN(Math.round(x))) { $ERROR("#1: 'var x=NaN; isNaN(Math.round(x)) === false'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.15/S15.8.2.15_A2.js b/test/suite/ch15/15.8/15.8.2/15.8.2.15/S15.8.2.15_A2.js index 9b6db1778..0eff41bb6 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.15/S15.8.2.15_A2.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.15/S15.8.2.15_A2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is +0, Math.round(x) is +0 - * - * @path ch15/15.8/15.8.2/15.8.2.15/S15.8.2.15_A2.js - * @description Checking if Math.round(x) equals to +0, where x is +0 - */ +/*--- +info: If x is +0, Math.round(x) is +0 +description: Checking if Math.round(x) equals to +0, where x is +0 +---*/ // CHECK#1 var x = +0; @@ -14,4 +12,3 @@ if (Math.round(x) !== +0) { $ERROR("#1: 'var x=+0; Math.round(x) !== +0'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.15/S15.8.2.15_A3.js b/test/suite/ch15/15.8/15.8.2/15.8.2.15/S15.8.2.15_A3.js index 7c32e99db..cbd714752 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.15/S15.8.2.15_A3.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.15/S15.8.2.15_A3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is -0, Math.round(x) is -0 - * - * @path ch15/15.8/15.8.2/15.8.2.15/S15.8.2.15_A3.js - * @description Checking if Math.round(x) equals to -0, where x is -0 - */ +/*--- +info: If x is -0, Math.round(x) is -0 +description: Checking if Math.round(x) equals to -0, where x is -0 +---*/ // CHECK#1 var x = -0; @@ -14,4 +12,3 @@ if (Math.round(x) !== -0) { $ERROR("#1: 'var x=-0; Math.round(x) !== -0'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.15/S15.8.2.15_A4.js b/test/suite/ch15/15.8/15.8.2/15.8.2.15/S15.8.2.15_A4.js index 5b9fe86a8..4dbe47c6c 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.15/S15.8.2.15_A4.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.15/S15.8.2.15_A4.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is +Infinity, Math.round(x) is +Infinity - * - * @path ch15/15.8/15.8.2/15.8.2.15/S15.8.2.15_A4.js - * @description Checking if Math.round(x) is +Infinity, where x is +Infinity - */ +/*--- +info: If x is +Infinity, Math.round(x) is +Infinity +description: Checking if Math.round(x) is +Infinity, where x is +Infinity +---*/ // CHECK#1 var x = +Infinity; @@ -14,4 +12,3 @@ if (Math.round(x) !== +Infinity) { $ERROR("#1: 'var x=+Infinity; Math.round(x) !== +Infinity'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.15/S15.8.2.15_A5.js b/test/suite/ch15/15.8/15.8.2/15.8.2.15/S15.8.2.15_A5.js index abf47375d..524c9a4d4 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.15/S15.8.2.15_A5.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.15/S15.8.2.15_A5.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is -Infinity, Math.round(x) is -Infinity - * - * @path ch15/15.8/15.8.2/15.8.2.15/S15.8.2.15_A5.js - * @description Checking if Math.round(x) is -Infinity, where x is -Infinity - */ +/*--- +info: If x is -Infinity, Math.round(x) is -Infinity +description: Checking if Math.round(x) is -Infinity, where x is -Infinity +---*/ // CHECK#1 var x = -Infinity; @@ -14,4 +12,3 @@ if (Math.round(x) !== -Infinity) { $ERROR("#1: 'var x=-Infinity; Math.round(x) !== -Infinity'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.15/S15.8.2.15_A6.js b/test/suite/ch15/15.8/15.8.2/15.8.2.15/S15.8.2.15_A6.js index 3b54f7c94..44229615e 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.15/S15.8.2.15_A6.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.15/S15.8.2.15_A6.js @@ -1,12 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is equal to 0 or greater than 0, or if x is less than -0.5, Math.round(x) is equal to Math.floor(x+0.5) - * - * @path ch15/15.8/15.8.2/15.8.2.15/S15.8.2.15_A6.js - * @description Checking if Math.round(x) is equal to Math.floor(x+0.5), where x equals to 0, greater than 0, or is less than -0.5; this check is performed on 2000 argument x values - */ +/*--- +info: > + If x is equal to 0 or greater than 0, or if x is less than -0.5, + Math.round(x) is equal to Math.floor(x+0.5) +description: > + Checking if Math.round(x) is equal to Math.floor(x+0.5), where x + equals to 0, greater than 0, or is less than -0.5; this check is + performed on 2000 argument x values +---*/ // CHECK#1 for (i = 0; i <= 1000; i++) @@ -33,4 +36,3 @@ for (i = -5; i >= -1000; i--) $ERROR("#2: 'x = " + x + "; Math.round(x) !== Math.floor(x + 0.5)'") } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.15/S15.8.2.15_A7.js b/test/suite/ch15/15.8/15.8.2/15.8.2.15/S15.8.2.15_A7.js index ffa7ba6da..c1bf43cd5 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.15/S15.8.2.15_A7.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.15/S15.8.2.15_A7.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is less than or equal to -0 and x is greater than or equal to -0.5, Math.round(x) is equal to -0 - * - * @path ch15/15.8/15.8.2/15.8.2.15/S15.8.2.15_A7.js - * @description Checking if Math.round(x) is equal -0, where x is equal to 0, equal to -0.5, or less than -0 while greater than -0.5 - */ +/*--- +info: > + If x is less than or equal to -0 and x is greater than or equal to -0.5, + Math.round(x) is equal to -0 +description: > + Checking if Math.round(x) is equal -0, where x is equal to 0, + equal to -0.5, or less than -0 while greater than -0.5 +---*/ // CHECK#1 if (Math.round(-0) !== -0) @@ -25,4 +27,3 @@ if (Math.round(-0.25) !== -0) { $ERROR("#3: 'Math.round(-0.25) !== -0'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.16/S15.8.2.16_A1.js b/test/suite/ch15/15.8/15.8.2/15.8.2.16/S15.8.2.16_A1.js index e8596f18f..75470f036 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.16/S15.8.2.16_A1.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.16/S15.8.2.16_A1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is NaN, Math.sin(x) is NaN - * - * @path ch15/15.8/15.8.2/15.8.2.16/S15.8.2.16_A1.js - * @description Checking if Math.sin(NaN) is NaN - */ +/*--- +info: If x is NaN, Math.sin(x) is NaN +description: Checking if Math.sin(NaN) is NaN +---*/ // CHECK#1 var x = NaN; @@ -14,4 +12,3 @@ if (!isNaN(Math.sin(x))) { $ERROR("#1: 'var x=NaN; isNaN(Math.sin(x)) === false'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.16/S15.8.2.16_A3.js b/test/suite/ch15/15.8/15.8.2/15.8.2.16/S15.8.2.16_A3.js index d2687c704..85025585a 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.16/S15.8.2.16_A3.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.16/S15.8.2.16_A3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is -0, Math.sin(x) is -0 - * - * @path ch15/15.8/15.8.2/15.8.2.16/S15.8.2.16_A3.js - * @description Checking if Math.sin(-0) equals to -0 - */ +/*--- +info: If x is -0, Math.sin(x) is -0 +description: Checking if Math.sin(-0) equals to -0 +---*/ // CHECK#1 var x = -0; @@ -14,4 +12,3 @@ if (Math.sin(x) !== -0) { $ERROR("#1: 'var x = -0; Math.sin(x) !== -0'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.16/S15.8.2.16_A4.js b/test/suite/ch15/15.8/15.8.2/15.8.2.16/S15.8.2.16_A4.js index f76c2b33f..897c46520 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.16/S15.8.2.16_A4.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.16/S15.8.2.16_A4.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is +Infinity, Math.sin(x) is NaN - * - * @path ch15/15.8/15.8.2/15.8.2.16/S15.8.2.16_A4.js - * @description Checking if Math.sin(+Infinity) is NaN - */ +/*--- +info: If x is +Infinity, Math.sin(x) is NaN +description: Checking if Math.sin(+Infinity) is NaN +---*/ // CHECK#1 var x = +Infinity; @@ -14,4 +12,3 @@ if (!isNaN(Math.sin(x))) { $ERROR("#1: 'var x = +Infinity; isNaN(Math.sin(x)) === false'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.16/S15.8.2.16_A5.js b/test/suite/ch15/15.8/15.8.2/15.8.2.16/S15.8.2.16_A5.js index 8115e744f..f09453de1 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.16/S15.8.2.16_A5.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.16/S15.8.2.16_A5.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is -Infinity, Math.sin(x) is NaN - * - * @path ch15/15.8/15.8.2/15.8.2.16/S15.8.2.16_A5.js - * @description Checking if Math.sin(-Infinity) is NaN - */ +/*--- +info: If x is -Infinity, Math.sin(x) is NaN +description: Checking if Math.sin(-Infinity) is NaN +---*/ // CHECK#1 var x = -Infinity; @@ -14,4 +12,3 @@ if (!isNaN(Math.sin(x))) { $ERROR("#1: 'var x = -Infinity; isNaN(Math.sin(x)) === false'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.16/S15.8.2.16_A6.js b/test/suite/ch15/15.8/15.8.2/15.8.2.16/S15.8.2.16_A6.js index 544e31760..2243664ed 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.16/S15.8.2.16_A6.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.16/S15.8.2.16_A6.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Sine is a periodic function with period 2*PI - * - * @path ch15/15.8/15.8.2/15.8.2.16/S15.8.2.16_A6.js - * @description Checking if Math.sin(x) equals to Math.sin(x+n*2*Math.PI) with precision 0.000000000003, where n is an integer from 1 to 100 and x is one of 10 float point values from 0 to 2*Math.PI - */ +/*--- +info: Sine is a periodic function with period 2*PI +description: > + Checking if Math.sin(x) equals to Math.sin(x+n*2*Math.PI) with + precision 0.000000000003, where n is an integer from 1 to 100 and + x is one of 10 float point values from 0 to 2*Math.PI +includes: [$FAIL.js] +---*/ // CHECK#1 prec = 0.000000000003; @@ -43,4 +45,3 @@ for (i = 0; i < snum; i++) } } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.16/S15.8.2.16_A7.js b/test/suite/ch15/15.8/15.8.2/15.8.2.16/S15.8.2.16_A7.js index 8ec58a852..4a53393b0 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.16/S15.8.2.16_A7.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.16/S15.8.2.16_A7.js @@ -1,15 +1,18 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Math.sin it is recommended that implementations use the approximation algorithms for IEEE 754 arithmetic contained in fdlibm - * - * @path ch15/15.8/15.8.2/15.8.2.16/S15.8.2.16_A7.js - * @description Checking if Math.sin is approximately equals to its mathematical values on the set of 64 argument values; all the sample values is calculated with LibC - */ - -$INCLUDE("math_precision.js"); -$INCLUDE("math_isequal.js"); +/*--- +info: > + Math.sin it is recommended that implementations use the approximation + algorithms for IEEE 754 arithmetic contained in fdlibm +description: > + Checking if Math.sin is approximately equals to its mathematical + values on the set of 64 argument values; all the sample values is + calculated with LibC +includes: + - math_precision.js + - math_isequal.js +---*/ // CHECK#1 vnum = 64; @@ -159,4 +162,3 @@ for (i = 0; i < vnum; i++) $ERROR("\nx = " + x[i] + "\nlibc.sin(x) = " + y[i] + "\nMath.sin(x) = " + Math.sin(x[i]) + "\nMath.abs(libc.sin(x) - Math.sin(x)) > " + prec + "\n\n"); } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.17/S15.8.2.17_A1.js b/test/suite/ch15/15.8/15.8.2/15.8.2.17/S15.8.2.17_A1.js index f726cede5..d9a8fa8aa 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.17/S15.8.2.17_A1.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.17/S15.8.2.17_A1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is NaN, Math.sqrt(x) is NaN - * - * @path ch15/15.8/15.8.2/15.8.2.17/S15.8.2.17_A1.js - * @description Checking if Math.sqrt(NaN) is NaN - */ +/*--- +info: If x is NaN, Math.sqrt(x) is NaN +description: Checking if Math.sqrt(NaN) is NaN +---*/ // CHECK#1 var x = NaN; @@ -14,4 +12,3 @@ if (!isNaN(Math.sqrt(x))) { $ERROR("#1: 'var x=NaN; isNaN(Math.sqrt(x)) === false'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.17/S15.8.2.17_A2.js b/test/suite/ch15/15.8/15.8.2/15.8.2.17/S15.8.2.17_A2.js index fbc4bebac..318a21baf 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.17/S15.8.2.17_A2.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.17/S15.8.2.17_A2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x less than 0, Math.sqrt(x) is NaN - * - * @path ch15/15.8/15.8.2/15.8.2.17/S15.8.2.17_A2.js - * @description Checking if Math.sqrt(x) is NaN, where x is less than 0 - */ +/*--- +info: If x less than 0, Math.sqrt(x) is NaN +description: Checking if Math.sqrt(x) is NaN, where x is less than 0 +---*/ // CHECK#1 var x = -0.000000000000001; @@ -28,4 +26,3 @@ if (!isNaN(Math.sqrt(x))) { $ERROR("#3: 'var x=-Infinity; isNaN(Math.sqrt(x)) === false'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.17/S15.8.2.17_A3.js b/test/suite/ch15/15.8/15.8.2/15.8.2.17/S15.8.2.17_A3.js index 7fa820d9d..6da30e582 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.17/S15.8.2.17_A3.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.17/S15.8.2.17_A3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is equal to +0, Math.sqrt(x) is +0 - * - * @path ch15/15.8/15.8.2/15.8.2.17/S15.8.2.17_A3.js - * @description Checking if Math.sqrt(+0) equals to +0 - */ +/*--- +info: If x is equal to +0, Math.sqrt(x) is +0 +description: Checking if Math.sqrt(+0) equals to +0 +---*/ // CHECK#1 var x = +0; @@ -14,4 +12,3 @@ if (Math.sqrt(x) !== +0) { $ERROR("#1: 'var x=+0; Math.sqrt(x) !== +0'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.17/S15.8.2.17_A4.js b/test/suite/ch15/15.8/15.8.2/15.8.2.17/S15.8.2.17_A4.js index 1caf03dcd..b765f4bc6 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.17/S15.8.2.17_A4.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.17/S15.8.2.17_A4.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is equal to -0, Math.sqrt(x) is -0 - * - * @path ch15/15.8/15.8.2/15.8.2.17/S15.8.2.17_A4.js - * @description Checking if Math.sqrt(-0) equals to -0 - */ +/*--- +info: If x is equal to -0, Math.sqrt(x) is -0 +description: Checking if Math.sqrt(-0) equals to -0 +---*/ // CHECK#1 var x = -0; @@ -14,4 +12,3 @@ if (Math.sqrt(x) !== -0) { $ERROR("#1: 'var x=-0; Math.sqrt(x) !== -0'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.17/S15.8.2.17_A5.js b/test/suite/ch15/15.8/15.8.2/15.8.2.17/S15.8.2.17_A5.js index 3bff31a19..639c5d8e5 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.17/S15.8.2.17_A5.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.17/S15.8.2.17_A5.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is equal to +Infinity, Math.sqrt(x) is +Infinity - * - * @path ch15/15.8/15.8.2/15.8.2.17/S15.8.2.17_A5.js - * @description Checking if Math.sqrt(+Infinity) is +Infinity - */ +/*--- +info: If x is equal to +Infinity, Math.sqrt(x) is +Infinity +description: Checking if Math.sqrt(+Infinity) is +Infinity +---*/ // CHECK#1 var x = +Infinity; @@ -14,4 +12,3 @@ if (Math.sqrt(x) !== +Infinity) { $ERROR("#1: 'var x=+Infinity; Math.sqrt(x) !== +Infinity'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.17/S15.8.2.17_A6.js b/test/suite/ch15/15.8/15.8.2/15.8.2.17/S15.8.2.17_A6.js index f668a1519..1dcaa3591 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.17/S15.8.2.17_A6.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.17/S15.8.2.17_A6.js @@ -1,15 +1,18 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Math.sqrt, recommended that implementations use the approximation algorithms for IEEE 754 arithmetic contained in fdlibm - * - * @path ch15/15.8/15.8.2/15.8.2.17/S15.8.2.17_A6.js - * @description Checking if Math.sqrt is approximately equals to its mathematical values on the set of 64 argument values; all the sample values is calculated with LibC - */ - -$INCLUDE("math_precision.js"); -$INCLUDE("math_isequal.js"); +/*--- +info: > + Math.sqrt, recommended that implementations use the approximation + algorithms for IEEE 754 arithmetic contained in fdlibm +description: > + Checking if Math.sqrt is approximately equals to its mathematical + values on the set of 64 argument values; all the sample values is + calculated with LibC +includes: + - math_precision.js + - math_isequal.js +---*/ // CHECK#1 vnum = 64; @@ -157,4 +160,3 @@ for (i = 0; i < vnum; i++) $ERROR("\nx = " + x[i] + "\nlibc.sqrt(x) = " + y[i] + "\nMath.sqrt(x) = " + Math.sqrt(x[i]) + "\nMath.abs(libc.sqrt(x) - Math.sqrt(x)) > " + prec + "\n\n"); } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.18/S15.8.2.18_A1.js b/test/suite/ch15/15.8/15.8.2/15.8.2.18/S15.8.2.18_A1.js index f8a7e24b3..71cd709da 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.18/S15.8.2.18_A1.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.18/S15.8.2.18_A1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is NaN, Math.tan(x) is NaN - * - * @path ch15/15.8/15.8.2/15.8.2.18/S15.8.2.18_A1.js - * @description Checking if Math.tan(NaN) is NaN - */ +/*--- +info: If x is NaN, Math.tan(x) is NaN +description: Checking if Math.tan(NaN) is NaN +---*/ // CHECK#1 var x = NaN; @@ -14,4 +12,3 @@ if (!isNaN(Math.tan(x))) { $ERROR("#1: 'var x=NaN; isNaN(Math.tan(x)) === false'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.18/S15.8.2.18_A2.js b/test/suite/ch15/15.8/15.8.2/15.8.2.18/S15.8.2.18_A2.js index d8c4ffc39..e701abdb5 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.18/S15.8.2.18_A2.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.18/S15.8.2.18_A2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is +0, Math.tan(x) is +0 - * - * @path ch15/15.8/15.8.2/15.8.2.18/S15.8.2.18_A2.js - * @description Checking if Math.tan(+0) equals to +0 - */ +/*--- +info: If x is +0, Math.tan(x) is +0 +description: Checking if Math.tan(+0) equals to +0 +---*/ // CHECK#1 var x = +0; @@ -14,4 +12,3 @@ if (Math.tan(x) !== +0) { $ERROR("#1: 'var x=+0; Math.tan(x) !== +0'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.18/S15.8.2.18_A3.js b/test/suite/ch15/15.8/15.8.2/15.8.2.18/S15.8.2.18_A3.js index 4c75e6e70..38d0eb849 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.18/S15.8.2.18_A3.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.18/S15.8.2.18_A3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is -0, Math.tan(x) is -0 - * - * @path ch15/15.8/15.8.2/15.8.2.18/S15.8.2.18_A3.js - * @description Checking if Math.tan(-0) equals to -0 - */ +/*--- +info: If x is -0, Math.tan(x) is -0 +description: Checking if Math.tan(-0) equals to -0 +---*/ // CHECK#1 var x = -0; @@ -14,4 +12,3 @@ if (Math.tan(x) !== -0) { $ERROR("#1: 'var x=-0; Math.tan(x) !== -0'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.18/S15.8.2.18_A4.js b/test/suite/ch15/15.8/15.8.2/15.8.2.18/S15.8.2.18_A4.js index 2b249a595..7fad25279 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.18/S15.8.2.18_A4.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.18/S15.8.2.18_A4.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is +Infinity, Math.tan(x) is NaN - * - * @path ch15/15.8/15.8.2/15.8.2.18/S15.8.2.18_A4.js - * @description Checking if Math.tan(+Infinity) is NaN - */ +/*--- +info: If x is +Infinity, Math.tan(x) is NaN +description: Checking if Math.tan(+Infinity) is NaN +---*/ // CHECK#1 var x = +Infinity; @@ -14,4 +12,3 @@ if (!isNaN(Math.tan(x))) { $ERROR("#1: 'var x=+Infinity; isNaN(Math.tan(x)) === false'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.18/S15.8.2.18_A5.js b/test/suite/ch15/15.8/15.8.2/15.8.2.18/S15.8.2.18_A5.js index 97add1b8c..7d1c0f6a8 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.18/S15.8.2.18_A5.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.18/S15.8.2.18_A5.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is -Infinity, Math.tan(x) is NaN - * - * @path ch15/15.8/15.8.2/15.8.2.18/S15.8.2.18_A5.js - * @description Checking if Math.tan(-Infinity) is NaN - */ +/*--- +info: If x is -Infinity, Math.tan(x) is NaN +description: Checking if Math.tan(-Infinity) is NaN +---*/ // CHECK#1 var x = -Infinity; @@ -14,4 +12,3 @@ if (!isNaN(Math.tan(x))) { $ERROR("#1: 'var x=-Infinity; isNaN(Math.tan(x)) === false'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.18/S15.8.2.18_A6.js b/test/suite/ch15/15.8/15.8.2/15.8.2.18/S15.8.2.18_A6.js index db326caa2..563958e11 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.18/S15.8.2.18_A6.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.18/S15.8.2.18_A6.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Tangent is a periodic function with period PI - * - * @path ch15/15.8/15.8.2/15.8.2.18/S15.8.2.18_A6.js - * @description Checking if Math.tan(x) equals to Math.tan(x+n*Math.PI) with precision 0.000000000003, where n is an integer from 1 to 100 and x is one of 10 float point values from 0 to Math.PI - */ +/*--- +info: Tangent is a periodic function with period PI +description: > + Checking if Math.tan(x) equals to Math.tan(x+n*Math.PI) with + precision 0.000000000003, where n is an integer from 1 to 100 and + x is one of 10 float point values from 0 to Math.PI +includes: [$FAIL.js] +---*/ // CHECK#1 prec = 0.00000000003; @@ -43,4 +45,3 @@ for (i = 0; i < snum; i++) } } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.18/S15.8.2.18_A7.js b/test/suite/ch15/15.8/15.8.2/15.8.2.18/S15.8.2.18_A7.js index 8f1c0a647..c8893e564 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.18/S15.8.2.18_A7.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.18/S15.8.2.18_A7.js @@ -1,15 +1,18 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Math.tan, recommended that implementations use the approximation algorithms for IEEE 754 arithmetic contained in fdlibm - * - * @path ch15/15.8/15.8.2/15.8.2.18/S15.8.2.18_A7.js - * @description Checking if Math.tan is approximately equals to its mathematical values on the set of 64 argument values; all the sample values is calculated with LibC - */ - -$INCLUDE("math_precision.js"); -$INCLUDE("math_isequal.js"); +/*--- +info: > + Math.tan, recommended that implementations use the approximation + algorithms for IEEE 754 arithmetic contained in fdlibm +description: > + Checking if Math.tan is approximately equals to its mathematical + values on the set of 64 argument values; all the sample values is + calculated with LibC +includes: + - math_precision.js + - math_isequal.js +---*/ // CHECK#1 vnum = 64; @@ -161,4 +164,3 @@ for (i = 0; i < vnum; i++) $ERROR("\nx = " + x[i] + "\nlibc.tan(x) = " + y[i] + "\nMath.tan(x) = " + Math.tan(x[i]) + "\nMath.abs(libc.tan(x) - Math.tan(x)) > " + prec + "\n\n"); } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.2/S15.8.2.2_A1.js b/test/suite/ch15/15.8/15.8.2/15.8.2.2/S15.8.2.2_A1.js index e3433a7db..eb4b69f08 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.2/S15.8.2.2_A1.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.2/S15.8.2.2_A1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is NaN, Math.acos(x) is NaN - * - * @path ch15/15.8/15.8.2/15.8.2.2/S15.8.2.2_A1.js - * @description Checking if Math.acos(NaN) is NaN - */ +/*--- +info: If x is NaN, Math.acos(x) is NaN +description: Checking if Math.acos(NaN) is NaN +---*/ // CHECK#1 var x = NaN; @@ -14,4 +12,3 @@ if (!isNaN(Math.acos(x))) { $ERROR("#1: 'var x=NaN; isNaN(Math.acos(x)) === false'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.2/S15.8.2.2_A2.js b/test/suite/ch15/15.8/15.8.2/15.8.2.2/S15.8.2.2_A2.js index 61c575734..f5e84ae26 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.2/S15.8.2.2_A2.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.2/S15.8.2.2_A2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is greater than 1, Math.acos(x) is NaN - * - * @path ch15/15.8/15.8.2/15.8.2.2/S15.8.2.2_A2.js - * @description Checking if Math.acos(x) is NaN, where x is greater than 1 - */ +/*--- +info: If x is greater than 1, Math.acos(x) is NaN +description: Checking if Math.acos(x) is NaN, where x is greater than 1 +---*/ // CHECK#1 var x = 1.000000000000001; @@ -28,4 +26,3 @@ if (!isNaN(Math.acos(x))) { $ERROR("#3: 'x = +Infinity; isNaN(Math.acos(x)) === false'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.2/S15.8.2.2_A3.js b/test/suite/ch15/15.8/15.8.2/15.8.2.2/S15.8.2.2_A3.js index 8bc72db91..57a56de52 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.2/S15.8.2.2_A3.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.2/S15.8.2.2_A3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is less than -1, Math.acos(x) is NaN - * - * @path ch15/15.8/15.8.2/15.8.2.2/S15.8.2.2_A3.js - * @description Checking if Math.acos(x) is NaN, where x is less than -1 - */ +/*--- +info: If x is less than -1, Math.acos(x) is NaN +description: Checking if Math.acos(x) is NaN, where x is less than -1 +---*/ // CHECK#1 var x = -1.000000000000001; @@ -28,4 +26,3 @@ if (!isNaN(Math.acos(x))) { $ERROR("#3: 'x = -Infinity; isNaN(Math.acos(x)) === false'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.2/S15.8.2.2_A4.js b/test/suite/ch15/15.8/15.8.2/15.8.2.2/S15.8.2.2_A4.js index 74130ce0e..bf9e01cdb 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.2/S15.8.2.2_A4.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.2/S15.8.2.2_A4.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is exactly 1, Math.acos(x) is +0 - * - * @path ch15/15.8/15.8.2/15.8.2.2/S15.8.2.2_A4.js - * @description Checking if Math.acos(1) equals to +0 - */ +/*--- +info: If x is exactly 1, Math.acos(x) is +0 +description: Checking if Math.acos(1) equals to +0 +---*/ // CHECK#1 var x = 1; @@ -14,4 +12,3 @@ if (Math.acos(x) !== +0) { $ERROR("#1: 'var x = 1; Math.acos(x) !== +0'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.2/S15.8.2.2_A5.js b/test/suite/ch15/15.8/15.8.2/15.8.2.2/S15.8.2.2_A5.js index 10c664f13..0315bf7a9 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.2/S15.8.2.2_A5.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.2/S15.8.2.2_A5.js @@ -1,15 +1,18 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Math.acos, recommended that implementations use the approximation algorithms for IEEE 754 arithmetic contained in fdlibm - * - * @path ch15/15.8/15.8.2/15.8.2.2/S15.8.2.2_A5.js - * @description Checking if Math.acos is approximately equals to its mathematical values on the set of 64 argument values; all the sample values is calculated with LibC - */ - -$INCLUDE("math_precision.js"); -$INCLUDE("math_isequal.js"); +/*--- +info: > + Math.acos, recommended that implementations use the approximation + algorithms for IEEE 754 arithmetic contained in fdlibm +description: > + Checking if Math.acos is approximately equals to its mathematical + values on the set of 64 argument values; all the sample values is + calculated with LibC +includes: + - math_precision.js + - math_isequal.js +---*/ // CHECK#1 vnum = 64; @@ -160,4 +163,3 @@ for (i = 0; i < vnum; i++) $ERROR("\nx = " + x[i] + "\nlibc.acos(x) = " + y[i] + "\nMath.acos(x) = " + Math.acos(x[i]) + "\nMath.abs(libc.acos(x) - Math.acos(x)) > " + prec + "\n\n"); } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.3/S15.8.2.3_A1.js b/test/suite/ch15/15.8/15.8.2/15.8.2.3/S15.8.2.3_A1.js index a58beb8f7..be7a40283 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.3/S15.8.2.3_A1.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.3/S15.8.2.3_A1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is NaN, Math.asin(x) is NaN - * - * @path ch15/15.8/15.8.2/15.8.2.3/S15.8.2.3_A1.js - * @description Checking if Math.asin(NaN) is NaN - */ +/*--- +info: If x is NaN, Math.asin(x) is NaN +description: Checking if Math.asin(NaN) is NaN +---*/ // CHECK#1 var x = NaN; @@ -14,4 +12,3 @@ if (!isNaN(Math.asin(x))) { $ERROR("#1: 'var x=NaN; isNaN(Math.asin(x)) === false'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.3/S15.8.2.3_A2.js b/test/suite/ch15/15.8/15.8.2/15.8.2.3/S15.8.2.3_A2.js index 3d30373b6..2c8778dab 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.3/S15.8.2.3_A2.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.3/S15.8.2.3_A2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is greater than 1, Math.asin(x) is NaN - * - * @path ch15/15.8/15.8.2/15.8.2.3/S15.8.2.3_A2.js - * @description Checking if Math.asin(x) is NaN, where x is greater than 1 - */ +/*--- +info: If x is greater than 1, Math.asin(x) is NaN +description: Checking if Math.asin(x) is NaN, where x is greater than 1 +---*/ // CHECK#1 var x = 1.000000000000001; @@ -28,4 +26,3 @@ if (!isNaN(Math.asin(x))) { $ERROR("#3: 'x = +Infinity; isNaN(Math.asin(x)) === false'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.3/S15.8.2.3_A3.js b/test/suite/ch15/15.8/15.8.2/15.8.2.3/S15.8.2.3_A3.js index 3e7537110..a31139964 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.3/S15.8.2.3_A3.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.3/S15.8.2.3_A3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is less than -1, Math.asin(x) is NaN - * - * @path ch15/15.8/15.8.2/15.8.2.3/S15.8.2.3_A3.js - * @description Checking if Math.asin(x) is NaN, where x is less than -1 - */ +/*--- +info: If x is less than -1, Math.asin(x) is NaN +description: Checking if Math.asin(x) is NaN, where x is less than -1 +---*/ // CHECK#1 var x = -1.000000000000001; @@ -28,4 +26,3 @@ if (!isNaN(Math.asin(x))) { $ERROR("#3: 'x = -Infinity; isNaN(Math.asin(x)) === false'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.3/S15.8.2.3_A4.js b/test/suite/ch15/15.8/15.8.2/15.8.2.3/S15.8.2.3_A4.js index ccef8681f..632d4ffcd 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.3/S15.8.2.3_A4.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.3/S15.8.2.3_A4.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is +0, Math.asin(x) is +0 - * - * @path ch15/15.8/15.8.2/15.8.2.3/S15.8.2.3_A4.js - * @description Checking if Math.asin(+0) equals +0 - */ +/*--- +info: If x is +0, Math.asin(x) is +0 +description: Checking if Math.asin(+0) equals +0 +---*/ // CHECK#1 var x = +0; @@ -14,4 +12,3 @@ if (Math.asin(x) !== +0) { $ERROR("#1: 'var x = +0; Math.asin(x) !== +0'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.3/S15.8.2.3_A5.js b/test/suite/ch15/15.8/15.8.2/15.8.2.3/S15.8.2.3_A5.js index afb2455ea..a9633d960 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.3/S15.8.2.3_A5.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.3/S15.8.2.3_A5.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is -0, Math.asin(x) is -0 - * - * @path ch15/15.8/15.8.2/15.8.2.3/S15.8.2.3_A5.js - * @description Checking if Math.asin(-0) equals to -0 - */ +/*--- +info: If x is -0, Math.asin(x) is -0 +description: Checking if Math.asin(-0) equals to -0 +---*/ // CHECK#1 var x = -0; @@ -14,4 +12,3 @@ if (Math.asin(x) !== -0) { $ERROR("#1: 'var x = -0; Math.asin(x) !== -0'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.3/S15.8.2.3_A6.js b/test/suite/ch15/15.8/15.8.2/15.8.2.3/S15.8.2.3_A6.js index 1cd817dfa..0d295a937 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.3/S15.8.2.3_A6.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.3/S15.8.2.3_A6.js @@ -1,15 +1,18 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Math.asin, recommended that implementations use the approximation algorithms for IEEE 754 arithmetic contained in fdlibm - * - * @path ch15/15.8/15.8.2/15.8.2.3/S15.8.2.3_A6.js - * @description Checking if Math.asin is approximately equals to its mathematical values on the set of 64 argument values; all the sample values is calculated with LibC - */ - -$INCLUDE("math_precision.js"); -$INCLUDE("math_isequal.js"); +/*--- +info: > + Math.asin, recommended that implementations use the approximation + algorithms for IEEE 754 arithmetic contained in fdlibm +description: > + Checking if Math.asin is approximately equals to its mathematical + values on the set of 64 argument values; all the sample values is + calculated with LibC +includes: + - math_precision.js + - math_isequal.js +---*/ // CHECK#1 vnum = 64; @@ -159,4 +162,3 @@ for (i = 0; i < vnum; i++) $ERROR("\nx = " + x[i] + "\nlibc.asin(x) = " + y[i] + "\nMath.asin(x) = " + Math.asin(x[i]) + "\nMath.abs(libc.asin(x) - Math.asin(x)) > " + prec + "\n\n"); } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.4/S15.8.2.4_A1.js b/test/suite/ch15/15.8/15.8.2/15.8.2.4/S15.8.2.4_A1.js index bffcb6f6d..995217cf5 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.4/S15.8.2.4_A1.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.4/S15.8.2.4_A1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is NaN, Math.atan(x) is NaN - * - * @path ch15/15.8/15.8.2/15.8.2.4/S15.8.2.4_A1.js - * @description Checking if Math.atan(NaN) is NaN - */ +/*--- +info: If x is NaN, Math.atan(x) is NaN +description: Checking if Math.atan(NaN) is NaN +---*/ // CHECK#1 var x = NaN; @@ -14,4 +12,3 @@ if (!isNaN(Math.atan(x))) { $ERROR("#1: 'var x=NaN; isNaN(Math.atan(x)) === false'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.4/S15.8.2.4_A2.js b/test/suite/ch15/15.8/15.8.2/15.8.2.4/S15.8.2.4_A2.js index 7e5112d1e..625c2829d 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.4/S15.8.2.4_A2.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.4/S15.8.2.4_A2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is +0, Math.atan(x) is +0 - * - * @path ch15/15.8/15.8.2/15.8.2.4/S15.8.2.4_A2.js - * @description Checking if Math.atan(+0) equals to +0 - */ +/*--- +info: If x is +0, Math.atan(x) is +0 +description: Checking if Math.atan(+0) equals to +0 +---*/ // CHECK#1 var x = +0; @@ -14,4 +12,3 @@ if (Math.atan(x) !== +0) { $ERROR("#1: 'var x = +0; Math.atan(x) !== +0'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.4/S15.8.2.4_A3.js b/test/suite/ch15/15.8/15.8.2/15.8.2.4/S15.8.2.4_A3.js index 586ab1ea1..434cf5c84 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.4/S15.8.2.4_A3.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.4/S15.8.2.4_A3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is -0, Math.atan(x) is -0 - * - * @path ch15/15.8/15.8.2/15.8.2.4/S15.8.2.4_A3.js - * @description Checking if Math.atan(-0) equals to -0 - */ +/*--- +info: If x is -0, Math.atan(x) is -0 +description: Checking if Math.atan(-0) equals to -0 +---*/ // CHECK#1 var x = -0; @@ -14,4 +12,3 @@ if (Math.atan(x) !== -0) { $ERROR("#1: 'var x = -0; Math.atan(x) !== -0'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.4/S15.8.2.4_A4.js b/test/suite/ch15/15.8/15.8.2/15.8.2.4/S15.8.2.4_A4.js index 3a755aa91..43fde5775 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.4/S15.8.2.4_A4.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.4/S15.8.2.4_A4.js @@ -1,16 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is +Infinity, Math.atan(x) is an implementation-dependent approximation to +PI/2 - * - * @path ch15/15.8/15.8.2/15.8.2.4/S15.8.2.4_A4.js - * @description Checking if Math.atan(+Infinity) is an approximation to +PI/2 - */ +/*--- +info: > + If x is +Infinity, Math.atan(x) is an implementation-dependent + approximation to +PI/2 +description: Checking if Math.atan(+Infinity) is an approximation to +PI/2 +includes: + - math_precision.js + - math_isequal.js +---*/ -$INCLUDE("math_precision.js"); -$INCLUDE("math_isequal.js"); - // CHECK#1 var x = +Infinity; @@ -18,4 +18,3 @@ if (!isEqual(Math.atan(x),Math.PI/2)) { $ERROR("#1: '!isEqual(Math.atan(+Infinity), Math.PI/2)'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.4/S15.8.2.4_A5.js b/test/suite/ch15/15.8/15.8.2/15.8.2.4/S15.8.2.4_A5.js index ff1794311..2806d4fde 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.4/S15.8.2.4_A5.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.4/S15.8.2.4_A5.js @@ -1,16 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is -Infinity, Math.atan(x) is an implementation-dependent approximation to -PI/2 - * - * @path ch15/15.8/15.8.2/15.8.2.4/S15.8.2.4_A5.js - * @description Checking if Math.atan(-Infinity) is an approximation to -PI/2 - */ +/*--- +info: > + If x is -Infinity, Math.atan(x) is an implementation-dependent + approximation to -PI/2 +description: Checking if Math.atan(-Infinity) is an approximation to -PI/2 +includes: + - math_precision.js + - math_isequal.js +---*/ -$INCLUDE("math_precision.js"); -$INCLUDE("math_isequal.js"); - // CHECK#1 var x = -Infinity; @@ -18,4 +18,3 @@ if (!isEqual(Math.atan(x), -Math.PI/2)) { $ERROR("#1: '!isEqual(Math.atan(-Infinity), -Math.PI/2)'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.4/S15.8.2.4_A6.js b/test/suite/ch15/15.8/15.8.2/15.8.2.4/S15.8.2.4_A6.js index d710a244e..5fda28897 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.4/S15.8.2.4_A6.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.4/S15.8.2.4_A6.js @@ -1,15 +1,18 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Math.atan, recommended that implementations use the approximation algorithms for IEEE 754 arithmetic contained in fdlibm - * - * @path ch15/15.8/15.8.2/15.8.2.4/S15.8.2.4_A6.js - * @description Checking if Math.atan is approximately equals to its mathematical values on the set of 64 argument values; all the sample values is calculated with LibC - */ - -$INCLUDE("math_precision.js"); -$INCLUDE("math_isequal.js"); +/*--- +info: > + Math.atan, recommended that implementations use the approximation + algorithms for IEEE 754 arithmetic contained in fdlibm +description: > + Checking if Math.atan is approximately equals to its mathematical + values on the set of 64 argument values; all the sample values is + calculated with LibC +includes: + - math_precision.js + - math_isequal.js +---*/ // CHECK#1 vnum = 64; @@ -159,4 +162,3 @@ for (i = 0; i < vnum; i++) $ERROR("\nx = " + x[i] + "\nlibc.atan(x) = " + y[i] + "\nMath.atan(x) = " + Math.atan(x[i]) + "\nMath.abs(libc.atan(x) - Math.atan(x)) > " + prec + "\n\n"); } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A1.js b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A1.js index 084f53c7e..d09c59e97 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A1.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A1.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If either x or y is NaN, Math(x,y) is NaN - * - * @path ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A1.js - * @description Checking if Math.atan2(NaN,y) and Math.atan2(x,NaN) is NaN for different x and y values - */ +/*--- +info: 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 +---*/ // CHECK#1 @@ -33,4 +33,3 @@ for (i = 0; i < 2; i++) } } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A10.js b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A10.js index 5f88e1eea..b10260670 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A10.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A10.js @@ -1,20 +1,19 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If y is -0 and x is -0, Math.atan2(y,x) is an implementation-dependent approximation to -PI - * - * @path ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A10.js - * @description Checking if Math.atan2(-0,-0) is an approximation to -PI - */ +/*--- +info: > + If y is -0 and x is -0, Math.atan2(y,x) is an implementation-dependent + approximation to -PI +description: Checking if Math.atan2(-0,-0) is an approximation to -PI +includes: + - math_precision.js + - math_isequal.js +---*/ -$INCLUDE("math_precision.js"); -$INCLUDE("math_isequal.js"); - // CHECK#1 //prec = 0.00000000000001; y = -0; x = -0; if (!isEqual(Math.atan2(y,x), -Math.PI)) $ERROR("#1: !isEqual(Math.atan2(-0,-0), -Math.PI)"); - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A11.js b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A11.js index 505353821..a06f643e6 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A11.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A11.js @@ -1,16 +1,17 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If y is equal to -0 and x<0, Math.atan2(y,x) is an implementation-dependent approximation to -PI - * - * @path ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A11.js - * @description Checking if Math.atan2(-0,x) is an approximation to -PI, where x<0 - */ +/*--- +info: > + If y is equal to -0 and x<0, Math.atan2(y,x) is an + implementation-dependent approximation to -PI +description: Checking if Math.atan2(-0,x) is an approximation to -PI, where x<0 +includes: + - $FAIL.js + - math_precision.js + - math_isequal.js +---*/ -$INCLUDE("math_precision.js"); -$INCLUDE("math_isequal.js"); - // CHECK#1 y = -0; //prec = 0.00000000000001; @@ -25,4 +26,3 @@ for (i = 0; i < xnum; i++) if (!isEqual(Math.atan2(y,x[i]), - Math.PI)) $FAIL("#1: Math.abs(Math.atan2(" + y + ", " + x[i] + ") + Math.PI) >= " + prec); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A12.js b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A12.js index 6796e7dcf..5c958d965 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A12.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A12.js @@ -1,16 +1,19 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If y<0 and x is +0, Math.atan2(y,x) is an implementation-dependent approximation to -PI/2 - * - * @path ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A12.js - * @description Checking if Math.atan2(y,+0) is an approximation to -PI/2, where y<0 - */ +/*--- +info: > + If y<0 and x is +0, Math.atan2(y,x) is an implementation-dependent + approximation to -PI/2 +description: > + Checking if Math.atan2(y,+0) is an approximation to -PI/2, where + y<0 +includes: + - $FAIL.js + - math_precision.js + - math_isequal.js +---*/ -$INCLUDE("math_precision.js"); -$INCLUDE("math_isequal.js"); - // CHECK#1 x = +0; //prec = 0.00000000000001; @@ -25,4 +28,3 @@ for (i = 0; i < ynum; i++) if (!isEqual(Math.atan2(y[i],x), -(Math.PI)/2)) $FAIL("#1: Math.abs(Math.atan2(" + y[i] + ", " + x + ") + ((Math.PI)/2)) >= " + prec); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A13.js b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A13.js index 76510d1a2..325ee37ee 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A13.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A13.js @@ -1,16 +1,19 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If y<0 and x is -0, Math.atan2(y,x) is an implementation-dependent approximation to -PI/2 - * - * @path ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A13.js - * @description Checking if Math.atan2(y,-0) is an approximation to -PI/2, where y<0 - */ +/*--- +info: > + If y<0 and x is -0, Math.atan2(y,x) is an implementation-dependent + approximation to -PI/2 +description: > + Checking if Math.atan2(y,-0) is an approximation to -PI/2, where + y<0 +includes: + - $FAIL.js + - math_precision.js + - math_isequal.js +---*/ -$INCLUDE("math_precision.js"); -$INCLUDE("math_isequal.js"); - // CHECK#1 x = -0; //prec = 0.00000000000001; @@ -25,4 +28,3 @@ for (i = 0; i < ynum; i++) if (!isEqual(Math.atan2(y[i],x), -(Math.PI)/2)) $FAIL("#1: Math.abs(Math.atan2(" + y[i] + ", -0) + ((Math.PI)/2)) >= " + prec); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A14.js b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A14.js index 51490acf8..a37446cf4 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A14.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A14.js @@ -1,12 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If y>0 and y is finite and x is equal to +Infinity, Math.atan2(y,x) is +0 - * - * @path ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A14.js - * @description Checking if Math.atan2(y,x) equals to +0, where y>0 and y is finite and x is equal to +Infinity - */ +/*--- +info: If y>0 and y is finite and x is equal to +Infinity, Math.atan2(y,x) is +0 +description: > + Checking if Math.atan2(y,x) equals to +0, where y>0 and y is + finite and x is equal to +Infinity +includes: [$FAIL.js] +---*/ // CHECK#1 x = +Infinity; @@ -21,4 +22,3 @@ for (i = 0; i < ynum; i++) if (Math.atan2(y[i],x) !== +0) $FAIL("#1: Math.atan2(" + y[i] + ", " + x + ") !== +0"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A15.js b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A15.js index d6dc4d203..1468a90ac 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A15.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A15.js @@ -1,16 +1,19 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If y>0 and y is finite and x is equal to -Infinity, Math.atan2(y,x) is an implementation-dependent approximation to +PI - * - * @path ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A15.js - * @description Checking if Math.atan2(y,x) is an approximation to +PI, where y>0 and y is finite and x is equal to -Infinity - */ +/*--- +info: > + If y>0 and y is finite and x is equal to -Infinity, Math.atan2(y,x) is an + implementation-dependent approximation to +PI +description: > + Checking if Math.atan2(y,x) is an approximation to +PI, where y>0 + and y is finite and x is equal to -Infinity +includes: + - $FAIL.js + - math_precision.js + - math_isequal.js +---*/ -$INCLUDE("math_precision.js"); -$INCLUDE("math_isequal.js"); - // CHECK#1 x = -Infinity; y = new Array(); @@ -24,4 +27,3 @@ for (i = 0; i < ynum; i++) if (!isEqual(Math.atan2(y[i],x),Math.PI)) $FAIL("#1: Math.abs(Math.atan2(" + y[i] + ", " + x + ") - Math.PI) >= " + prec); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A16.js b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A16.js index 9421fdb00..1fa0b3e6c 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A16.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A16.js @@ -1,12 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If y<0 and y is finite and x is equal to +Infinity, Math.atan2(y,x) is -0 - * - * @path ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A16.js - * @description Checking if Math.atan2(y,x) is -0, where y<0 and y is finite and x is equal to +Infinity - */ +/*--- +info: If y<0 and y is finite and x is equal to +Infinity, Math.atan2(y,x) is -0 +description: > + Checking if Math.atan2(y,x) is -0, where y<0 and y is finite and x + is equal to +Infinity +includes: [$FAIL.js] +---*/ // CHECK#1 x = +Infinity; @@ -21,4 +22,3 @@ for (i = 0; i < ynum; i++) if (Math.atan2(y[i],x) !== -0) $FAIL("#1: Math.atan2(" + y[i] + ", " + x + ") !== -0"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A17.js b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A17.js index 233cbb418..f4c4138bc 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A17.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A17.js @@ -1,16 +1,19 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If y<0 and y is finite and x is equal to -Infinity, Math.atan2(y,x) is an implementation-dependent approximation to -PI - * - * @path ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A17.js - * @description Checking if Math.atan2(y,x) is an approximation to -PI, where y<0 and y is finite and x is equal to -Infinity - */ +/*--- +info: > + If y<0 and y is finite and x is equal to -Infinity, Math.atan2(y,x) is an + implementation-dependent approximation to -PI +description: > + Checking if Math.atan2(y,x) is an approximation to -PI, where y<0 + and y is finite and x is equal to -Infinity +includes: + - $FAIL.js + - math_precision.js + - math_isequal.js +---*/ -$INCLUDE("math_precision.js"); -$INCLUDE("math_isequal.js"); - // CHECK#1 x = -Infinity; y = new Array(); @@ -24,4 +27,3 @@ for (i = 0; i < ynum; i++) if (!isEqual(Math.atan2(y[i],x), -Math.PI)) $FAIL("#1: Math.abs(Math.atan2(" + y[i] + ", " + x + ") + Math.PI) >= " + prec); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A18.js b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A18.js index e20cffff7..d6ecab0df 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A18.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A18.js @@ -1,16 +1,19 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If y is +Infinity and x is finite, Math.atan2(y,x) is an implementation-dependent approximation to +PI/2 - * - * @path ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A18.js - * @description Checking if Math.atan2(y,x) is an approximation to +PI/2, where y is +Infinity and x is finite - */ +/*--- +info: > + If y is +Infinity and x is finite, Math.atan2(y,x) is an + implementation-dependent approximation to +PI/2 +description: > + Checking if Math.atan2(y,x) is an approximation to +PI/2, where y + is +Infinity and x is finite +includes: + - $FAIL.js + - math_precision.js + - math_isequal.js +---*/ -$INCLUDE("math_precision.js"); -$INCLUDE("math_isequal.js"); - // CHECK#1 y = +Infinity; x = new Array(); @@ -28,4 +31,3 @@ for (i = 0; i < xnum; i++) if (!isEqual(Math.atan2(y,x[i]), (Math.PI)/2)) $FAIL("#1: Math.abs(Math.atan2(" + y + ", " + x[i] + ") - (Math.PI/2)) >= " + prec); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A19.js b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A19.js index 96973b30c..7a084323c 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A19.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A19.js @@ -1,15 +1,18 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If y is -Infinity and x is finite, Math.atan2(y,x) is an implementation-dependent approximation to -PI/2 - * - * @path ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A19.js - * @description Checking if Math.atan2(y,x) is an approximation to -PI/2, where y is -Infinity and x is finite - */ - -$INCLUDE("math_precision.js"); -$INCLUDE("math_isequal.js"); +/*--- +info: > + If y is -Infinity and x is finite, Math.atan2(y,x) is an + implementation-dependent approximation to -PI/2 +description: > + Checking if Math.atan2(y,x) is an approximation to -PI/2, where y + is -Infinity and x is finite +includes: + - $FAIL.js + - math_precision.js + - math_isequal.js +---*/ // CHECK#1 //prec = 0.00000000000001; @@ -29,4 +32,3 @@ for (i = 0; i < xnum; i++) if (!isEqual(Math.atan2(y,x[i]), -(Math.PI)/2)) $FAIL("#1: Math.abs(Math.atan2(" + y + ", " + x[i] + ") + (Math.PI/2)) >= " + prec); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A2.js b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A2.js index 96f385242..6291cd015 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A2.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A2.js @@ -1,15 +1,18 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If y>0 and x is +0, Math.atan2(y,x) is an implementation-dependent approximation to +PI/2 - * - * @path ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A2.js - * @description Checking if Math.atan2(y,x) is an approximation to +PI/2, where y>0 and x is +0 - */ - -$INCLUDE("math_precision.js"); -$INCLUDE("math_isequal.js"); +/*--- +info: > + If y>0 and x is +0, Math.atan2(y,x) is an implementation-dependent + approximation to +PI/2 +description: > + Checking if Math.atan2(y,x) is an approximation to +PI/2, where + y>0 and x is +0 +includes: + - $FAIL.js + - math_precision.js + - math_isequal.js +---*/ // CHECK#1 x = +0; @@ -25,4 +28,3 @@ for (i = 0; i < ynum; i++) if (!isEqual(Math.atan2(y[i],x),(Math.PI)/2)) $FAIL("#1: Math.abs(Math.atan2(" + y[i] + ", " + x + ") - ((Math.PI)/2)) >= " + prec); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A20.js b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A20.js index 5bedc82c7..51909c99f 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A20.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A20.js @@ -1,15 +1,17 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If y is equal to +Infinity and x is equal to +Infinity, Math.atan2(y,x) is an implementation-dependent approximation to +PI/4 - * - * @path ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A20.js - * @description Checking if Math.atan2(y,x) is an approximation to +PI/4, where y is equal to +Infinity and x is equal to +Infinity - */ - -$INCLUDE("math_precision.js"); -$INCLUDE("math_isequal.js"); +/*--- +info: > + If y is equal to +Infinity and x is equal to +Infinity, Math.atan2(y,x) + is an implementation-dependent approximation to +PI/4 +description: > + Checking if Math.atan2(y,x) is an approximation to +PI/4, where y + is equal to +Infinity and x is equal to +Infinity +includes: + - math_precision.js + - math_isequal.js +---*/ // CHECK#1 //prec = 0.00000000000001; @@ -18,4 +20,3 @@ x = +Infinity; if (!isEqual(Math.atan2(y,x),(Math.PI)/4)) $ERROR("#1: Math.abs(Math.atan2(" + y + ", " + x + ") - (Math.PI/4)) >= " + prec); - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A21.js b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A21.js index 058b5109f..fe37ec9ca 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A21.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A21.js @@ -1,15 +1,17 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If y is equal to +Infinity and x is equal to -Infinity, Math.atan2(y,x) is an implementation-dependent approximation to +3*PI/4 - * - * @path ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A21.js - * @description Checking if Math.atan2(y,x) is an approximation to +3*PI/4, where y is equal to +Infinity and x is equal to -Infinity - */ - -$INCLUDE("math_precision.js"); -$INCLUDE("math_isequal.js"); +/*--- +info: > + If y is equal to +Infinity and x is equal to -Infinity, Math.atan2(y,x) + is an implementation-dependent approximation to +3*PI/4 +description: > + Checking if Math.atan2(y,x) is an approximation to +3*PI/4, where + y is equal to +Infinity and x is equal to -Infinity +includes: + - math_precision.js + - math_isequal.js +---*/ // CHECK#1 //prec = 0.00000000000001; @@ -18,4 +20,3 @@ x = -Infinity; if (!isEqual(Math.atan2(y,x), (3*Math.PI)/4)) $ERROR("#1: Math.abs(Math.atan2(" + y + ", " + x + ") - (3*Math.PI/4)) >= " + prec); - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A22.js b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A22.js index ddf8dc3fe..6bfb04c88 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A22.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A22.js @@ -1,15 +1,17 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If y is equal to -Infinity and x is equal to +Infinity, Math.atan2(y,x) is an implementation-dependent approximation to -PI/4 - * - * @path ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A22.js - * @description Checking if Math.atan2(y,x) is an approximation to -PI/4, where y is equal to -Infinity and x is equal to +Infinity - */ - -$INCLUDE("math_precision.js"); -$INCLUDE("math_isequal.js"); +/*--- +info: > + If y is equal to -Infinity and x is equal to +Infinity, Math.atan2(y,x) + is an implementation-dependent approximation to -PI/4 +description: > + Checking if Math.atan2(y,x) is an approximation to -PI/4, where y + is equal to -Infinity and x is equal to +Infinity +includes: + - math_precision.js + - math_isequal.js +---*/ // CHECK#1 //prec = 0.00000000000001; @@ -18,4 +20,3 @@ x = +Infinity; if (!isEqual(Math.atan2(y,x),- (Math.PI)/4)) $ERROR("#1: Math.abs(Math.atan2(" + y + ", " + x + ") + (Math.PI/4)) >= " + prec); - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A23.js b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A23.js index 29bf2e98a..a2dca08cb 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A23.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A23.js @@ -1,15 +1,17 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If y is equal to -Infinity and x is equal to -Infinity, Math.atan2(y,x) is an implementation-dependent approximation to -3*PI/4 - * - * @path ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A23.js - * @description Checking if Math.atan2(y,x) is an approximation to -3*PI/4, where y is equal to -Infinity and x is equal to -Infinity - */ - -$INCLUDE("math_precision.js"); -$INCLUDE("math_isequal.js"); +/*--- +info: > + If y is equal to -Infinity and x is equal to -Infinity, Math.atan2(y,x) + is an implementation-dependent approximation to -3*PI/4 +description: > + Checking if Math.atan2(y,x) is an approximation to -3*PI/4, where + y is equal to -Infinity and x is equal to -Infinity +includes: + - math_precision.js + - math_isequal.js +---*/ // CHECK#1 //prec = 0.00000000000001; @@ -18,4 +20,3 @@ x = -Infinity; if (!isEqual(Math.atan2(y,x), -(3*Math.PI)/4)) $ERROR("#1: Math.abs(Math.atan2(" + y + ", " + x + ") + (3*Math.PI/4)) >= " + prec); - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A24.js b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A24.js index c966766dd..db4ec4f4a 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A24.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A24.js @@ -1,15 +1,19 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Math.atan2, recommended that implementations use the approximation algorithms for IEEE 754 arithmetic contained in fdlibm - * - * @path ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A24.js - * @description Checking if Math.atan2(argument1, argument2) is approximately equals to its mathematical values on the set of 64 argument1 values and 64 argument2 values; all the sample values is calculated with LibC - */ - -$INCLUDE("math_precision.js"); -$INCLUDE("math_isequal.js"); +/*--- +info: > + Math.atan2, recommended that implementations use the approximation + algorithms for IEEE 754 arithmetic contained in fdlibm +description: > + Checking if Math.atan2(argument1, argument2) is approximately + equals to its mathematical values on the set of 64 argument1 + values and 64 argument2 values; all the sample values is + calculated with LibC +includes: + - math_precision.js + - math_isequal.js +---*/ // CHECK#1 vnum = 64; @@ -224,4 +228,3 @@ for (i = 0; i < vnum; i++) $ERROR("\nx1 = " + x1[i] + "\nx2 = " + x2[i] + "\nlibc.atan2(x1,x2) = " + y[i] + "\nMath.atan2(x1,x2) = " + Math.atan2(x1[i],x2[i]) + "\nMath.abs(libc.atan2(x1,x2) - Math.atan2(x1,x2)) > " + prec + "\n\n"); } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A3.js b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A3.js index 925ae06a7..ca965d6ba 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A3.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A3.js @@ -1,15 +1,18 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If y>0 and x is -0, Math.atan2(y,x) is an implementation-dependent approximation to +PI/2 - * - * @path ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A3.js - * @description Checking if Math.atan2(y,x) is an approximation to +PI/2, where y>0 and x is -0 - */ - -$INCLUDE("math_precision.js"); -$INCLUDE("math_isequal.js"); +/*--- +info: > + If y>0 and x is -0, Math.atan2(y,x) is an implementation-dependent + approximation to +PI/2 +description: > + Checking if Math.atan2(y,x) is an approximation to +PI/2, where + y>0 and x is -0 +includes: + - $FAIL.js + - math_precision.js + - math_isequal.js +---*/ // CHECK#1 x = -0; @@ -25,4 +28,3 @@ for (i = 0; i < ynum; i++) if (!isEqual(Math.atan2(y[i],x), (Math.PI)/2)) $FAIL("#1: Math.abs(Math.atan2(" + y[i] + ", " + x + ") - ((Math.PI)/2)) >= " + prec); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A4.js b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A4.js index 33697a84a..19f1e7a4e 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A4.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A4.js @@ -1,12 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If y is +0 and x>0, Math.atan2(y,x) is +0 - * - * @path ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A4.js - * @description Checking if Math.atan2(y,x) equals to +0, where y is +0 and x>0 - */ +/*--- +info: If y is +0 and x>0, Math.atan2(y,x) is +0 +description: Checking if Math.atan2(y,x) equals to +0, where y is +0 and x>0 +includes: [$FAIL.js] +---*/ // CHECK#1 y = +0; @@ -21,4 +20,3 @@ for (i = 0; i < xnum; i++) if (Math.atan2(y,x[i]) !== +0) $FAIL("#1: Math.atan2(" + y + ", " + x[i] + ") !== +0"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A5.js b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A5.js index 1fceab108..64d528bee 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A5.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A5.js @@ -1,16 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If y is +0 and x is +0, Math.atan2(y,x) is +0 - * - * @path ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A5.js - * @description Checking if Math.atan2(y,x) is +0, where y is +0 and x is +0 - */ +/*--- +info: If y is +0 and x is +0, Math.atan2(y,x) is +0 +description: Checking if Math.atan2(y,x) is +0, where y is +0 and x is +0 +---*/ // CHECK#1 y = +0; x = +0; if (Math.atan2(y,x) !== +0) $ERROR("#1: Math.atan2(" + y + ", " + x + ") !== +0"); - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A6.js b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A6.js index e75cad001..c6201ff7c 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A6.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A6.js @@ -1,15 +1,17 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If y is +0 and x is -0, Math.atan2(y,x) is an implementation-dependent approximation to +PI - * - * @path ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A6.js - * @description Checking if Math.atan2(y,x) is an approximation to +PI, where y is +0 and x is -0 - */ - -$INCLUDE("math_precision.js"); -$INCLUDE("math_isequal.js"); +/*--- +info: > + If y is +0 and x is -0, Math.atan2(y,x) is an implementation-dependent + approximation to +PI +description: > + Checking if Math.atan2(y,x) is an approximation to +PI, where y is + +0 and x is -0 +includes: + - math_precision.js + - math_isequal.js +---*/ // CHECK#1 //prec = 0.00000000000001; @@ -17,4 +19,3 @@ y = +0; x = -0; if (!isEqual(Math.atan2(y,x), Math.PI)) $ERROR("#1: Math.abs(Math.atan2(" + y + ", -0) - Math.PI) >= " + prec); - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A7.js b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A7.js index 972befbd6..953e68870 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A7.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A7.js @@ -1,15 +1,18 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If y is equal to +0 and x<0, Math.atan2(y,x) is an implementation-dependent approximation to +PI - * - * @path ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A7.js - * @description Checking if Math.atan2(y,x) is an approximation to +PI, where y is equal to +0 and x<0 - */ - -$INCLUDE("math_precision.js"); -$INCLUDE("math_isequal.js"); +/*--- +info: > + If y is equal to +0 and x<0, Math.atan2(y,x) is an + implementation-dependent approximation to +PI +description: > + Checking if Math.atan2(y,x) is an approximation to +PI, where y is + equal to +0 and x<0 +includes: + - $FAIL.js + - math_precision.js + - math_isequal.js +---*/ // CHECK#1 y = +0; @@ -25,4 +28,3 @@ for (i = 0; i < xnum; i++) if (!isEqual(Math.atan2(y,x[i]), Math.PI)) $FAIL("#1: Math.abs(Math.atan2(" + y + ", " + x[i] + ") - Math.PI) >= " + prec); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A8.js b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A8.js index 51673b4c3..900dff2f2 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A8.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A8.js @@ -1,12 +1,11 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If y is equal to -0 and x>0, Math.atan2(y,x) is -0 - * - * @path ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A8.js - * @description Checking if Math.atan2(y,x) is -0, where y is equal to -0 and x>0 - */ +/*--- +info: If y is equal to -0 and x>0, Math.atan2(y,x) is -0 +description: Checking if Math.atan2(y,x) is -0, where y is equal to -0 and x>0 +includes: [$FAIL.js] +---*/ // CHECK#1 y = -0; @@ -21,4 +20,3 @@ for (i = 0; i < xnum; i++) if (Math.atan2(y,x[i]) !== -0) $FAIL("#1: Math.atan2(" + y + ", " + x[i] + ") !== -0"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A9.js b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A9.js index 56db227ac..c08286fe0 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A9.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A9.js @@ -1,16 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If y is -0 and x is +0, Math.atan2(y,x) is -0 - * - * @path ch15/15.8/15.8.2/15.8.2.5/S15.8.2.5_A9.js - * @description Checking if Math.atan2(y,x) is -0, where y is -0 and x is +0 - */ +/*--- +info: If y is -0 and x is +0, Math.atan2(y,x) is -0 +description: Checking if Math.atan2(y,x) is -0, where y is -0 and x is +0 +---*/ // CHECK#1 y = -0; x = +0; if (Math.atan2(y,x) !== -0) $ERROR("#1: Math.atan2(" + y + ", " + x + ") !== -0"); - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.6/S15.8.2.6_A1.js b/test/suite/ch15/15.8/15.8.2/15.8.2.6/S15.8.2.6_A1.js index cf8b205cb..4ce7024ae 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.6/S15.8.2.6_A1.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.6/S15.8.2.6_A1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is NaN, Math.ceil(x) is NaN - * - * @path ch15/15.8/15.8.2/15.8.2.6/S15.8.2.6_A1.js - * @description Checking if Math.ceil(NaN) is NaN - */ +/*--- +info: If x is NaN, Math.ceil(x) is NaN +description: Checking if Math.ceil(NaN) is NaN +---*/ // CHECK#1 var x = NaN; @@ -14,4 +12,3 @@ if (!isNaN(Math.ceil(x))) { $ERROR("#1: 'var x=NaN; isNaN(Math.ceil(x)) === false'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.6/S15.8.2.6_A2.js b/test/suite/ch15/15.8/15.8.2/15.8.2.6/S15.8.2.6_A2.js index cda2b1f77..f926c8d2f 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.6/S15.8.2.6_A2.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.6/S15.8.2.6_A2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is +0, Math.ceil(x) is +0 - * - * @path ch15/15.8/15.8.2/15.8.2.6/S15.8.2.6_A2.js - * @description Checking if Math.ceil(x) is +0, where x is +0 - */ +/*--- +info: If x is +0, Math.ceil(x) is +0 +description: Checking if Math.ceil(x) is +0, where x is +0 +---*/ // CHECK#1 var x = +0; @@ -14,4 +12,3 @@ if (Math.ceil(x) !== +0) { $ERROR("#1: 'var x = +0; Math.ceil(x) !== +0'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.6/S15.8.2.6_A3.js b/test/suite/ch15/15.8/15.8.2/15.8.2.6/S15.8.2.6_A3.js index cc0e0dd35..3a0a5c14c 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.6/S15.8.2.6_A3.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.6/S15.8.2.6_A3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is -0, Math.ceil(x) is -0 - * - * @path ch15/15.8/15.8.2/15.8.2.6/S15.8.2.6_A3.js - * @description Checking if Math.ceil(x) is -0, where x is -0 - */ +/*--- +info: If x is -0, Math.ceil(x) is -0 +description: Checking if Math.ceil(x) is -0, where x is -0 +---*/ // CHECK#1 var x = -0; @@ -14,4 +12,3 @@ if (Math.ceil(x) !== -0) { $ERROR("#1: 'var x = -0; Math.ceil(x) !== -0'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.6/S15.8.2.6_A4.js b/test/suite/ch15/15.8/15.8.2/15.8.2.6/S15.8.2.6_A4.js index 08151bc08..7bae84bc8 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.6/S15.8.2.6_A4.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.6/S15.8.2.6_A4.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is +Infinity, Math.ceil(x) is +Infinity - * - * @path ch15/15.8/15.8.2/15.8.2.6/S15.8.2.6_A4.js - * @description Checking if Math.ceil(x) is +Infinity, where x is +Infinity - */ +/*--- +info: If x is +Infinity, Math.ceil(x) is +Infinity +description: Checking if Math.ceil(x) is +Infinity, where x is +Infinity +---*/ // CHECK#1 var x = +Infinity; @@ -14,4 +12,3 @@ if (Math.ceil(x) !== +Infinity) { $ERROR("#1: 'var x = +Infinity; Math.ceil(x) !== +Infinity'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.6/S15.8.2.6_A5.js b/test/suite/ch15/15.8/15.8.2/15.8.2.6/S15.8.2.6_A5.js index ac16f0644..b258098b1 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.6/S15.8.2.6_A5.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.6/S15.8.2.6_A5.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is -Infinity, Math.ceil(x) is -Infinity - * - * @path ch15/15.8/15.8.2/15.8.2.6/S15.8.2.6_A5.js - * @description Checking if Math.ceil(x) is -Infinity, where x is -Infinity - */ +/*--- +info: If x is -Infinity, Math.ceil(x) is -Infinity +description: Checking if Math.ceil(x) is -Infinity, where x is -Infinity +---*/ // CHECK#1 var x = -Infinity; @@ -14,4 +12,3 @@ if (Math.ceil(x) !== -Infinity) { $ERROR("#1: 'var x = -Infinity; Math.ceil(x) !== -Infinity'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.6/S15.8.2.6_A6.js b/test/suite/ch15/15.8/15.8.2/15.8.2.6/S15.8.2.6_A6.js index 3f3768fea..c1e65656c 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.6/S15.8.2.6_A6.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.6/S15.8.2.6_A6.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is less than 0 but greater than -1, Math.ceil(x) is -0 - * - * @path ch15/15.8/15.8.2/15.8.2.6/S15.8.2.6_A6.js - * @description Checking if Math.ceil(x) is -0, where x is less than 0 but greater than -1 - */ +/*--- +info: If x is less than 0 but greater than -1, Math.ceil(x) is -0 +description: > + Checking if Math.ceil(x) is -0, where x is less than 0 but greater + than -1 +---*/ // CHECK#1 var x = -0.000000000000001; @@ -28,4 +28,3 @@ if (Math.ceil(x) !== -0) { $ERROR("#3: 'var x = -0.5; Math.ceil(x) !== -0'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.6/S15.8.2.6_A7.js b/test/suite/ch15/15.8/15.8.2/15.8.2.6/S15.8.2.6_A7.js index 4f038783e..158ba67db 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.6/S15.8.2.6_A7.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.6/S15.8.2.6_A7.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The value of Math.ceil(x) is the same as the value of -Math.floor(-x) - * - * @path ch15/15.8/15.8.2/15.8.2.6/S15.8.2.6_A7.js - * @description Checking if Math.ceil(x) equals to -Math.floor(-x) on 2000 floating point argument values - */ +/*--- +info: The value of Math.ceil(x) is the same as the value of -Math.floor(-x) +description: > + Checking if Math.ceil(x) equals to -Math.floor(-x) on 2000 + floating point argument values +---*/ // CHECK#1 for (i=-1000; i<1000; i++) @@ -17,4 +17,3 @@ for (i=-1000; i<1000; i++) $ERROR("#1: 'x = " + x + "; Math.ceil(x) !== -Math.floor(-x)'"); } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.7/S15.8.2.7_A1.js b/test/suite/ch15/15.8/15.8.2/15.8.2.7/S15.8.2.7_A1.js index 53a7380cb..040fe7a21 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.7/S15.8.2.7_A1.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.7/S15.8.2.7_A1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is NaN, Math.cos(x) is NaN - * - * @path ch15/15.8/15.8.2/15.8.2.7/S15.8.2.7_A1.js - * @description Checking if Math.cos(NaN) is NaN - */ +/*--- +info: If x is NaN, Math.cos(x) is NaN +description: Checking if Math.cos(NaN) is NaN +---*/ // CHECK#1 var x = NaN; @@ -14,4 +12,3 @@ if (!isNaN(Math.cos(x))) { $ERROR("#1: 'var x=NaN; isNaN(Math.cos(x)) === false'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.7/S15.8.2.7_A2.js b/test/suite/ch15/15.8/15.8.2/15.8.2.7/S15.8.2.7_A2.js index 2faeeba39..327f2fa9f 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.7/S15.8.2.7_A2.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.7/S15.8.2.7_A2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is +0, Math.cos(x) is 1 - * - * @path ch15/15.8/15.8.2/15.8.2.7/S15.8.2.7_A2.js - * @description Checking if Math.cos(+0) is 1 - */ +/*--- +info: If x is +0, Math.cos(x) is 1 +description: Checking if Math.cos(+0) is 1 +---*/ // CHECK#1 var x = +0; @@ -14,4 +12,3 @@ if (Math.cos(x) !== 1) { $ERROR("#1: 'var x = +0; Math.cos(x) !== 1'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.7/S15.8.2.7_A3.js b/test/suite/ch15/15.8/15.8.2/15.8.2.7/S15.8.2.7_A3.js index 274c29162..122e6d190 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.7/S15.8.2.7_A3.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.7/S15.8.2.7_A3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is -0, Math.cos(x) is 1 - * - * @path ch15/15.8/15.8.2/15.8.2.7/S15.8.2.7_A3.js - * @description Checking if Math.cos(-0) is 1 - */ +/*--- +info: If x is -0, Math.cos(x) is 1 +description: Checking if Math.cos(-0) is 1 +---*/ // CHECK#1 var x = -0; @@ -14,4 +12,3 @@ if (Math.cos(x) !== 1) { $ERROR("#1: 'var x = -0; Math.cos(x) !== 1'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.7/S15.8.2.7_A4.js b/test/suite/ch15/15.8/15.8.2/15.8.2.7/S15.8.2.7_A4.js index 4722df258..d1b22eba7 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.7/S15.8.2.7_A4.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.7/S15.8.2.7_A4.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is +Infinity, Math.cos(x) is NaN - * - * @path ch15/15.8/15.8.2/15.8.2.7/S15.8.2.7_A4.js - * @description Checking if Math.cos(+Infinity) is NaN - */ +/*--- +info: If x is +Infinity, Math.cos(x) is NaN +description: Checking if Math.cos(+Infinity) is NaN +---*/ // CHECK#1 var x = +Infinity; @@ -14,4 +12,3 @@ if (!isNaN(Math.cos(x))) { $ERROR("#1: 'var x = +Infinity; isNaN(Math.cos(x)) === false'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.7/S15.8.2.7_A5.js b/test/suite/ch15/15.8/15.8.2/15.8.2.7/S15.8.2.7_A5.js index 9623fd4fe..5648ae9c7 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.7/S15.8.2.7_A5.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.7/S15.8.2.7_A5.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is -Infinity, Math.cos(x) is NaN - * - * @path ch15/15.8/15.8.2/15.8.2.7/S15.8.2.7_A5.js - * @description Checking if Math.cos(-Infinity) is NaN - */ +/*--- +info: If x is -Infinity, Math.cos(x) is NaN +description: Checking if Math.cos(-Infinity) is NaN +---*/ // CHECK#1 var x = -Infinity; @@ -14,4 +12,3 @@ if (!isNaN(Math.cos(x))) { $ERROR("#1: 'var x = -Infinity; isNaN(Math.cos(x)) === false'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.7/S15.8.2.7_A6.js b/test/suite/ch15/15.8/15.8.2/15.8.2.7/S15.8.2.7_A6.js index f9099ce89..3707b3a69 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.7/S15.8.2.7_A6.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.7/S15.8.2.7_A6.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Cosine is a periodic function with period 2*PI - * - * @path ch15/15.8/15.8.2/15.8.2.7/S15.8.2.7_A6.js - * @description Checking if Math.cos(x) equals to Math.cos(x+n*2*Math.PI) with precision 0.000000000003, where n is an integer from 1 to 100 and x is one of 10 float point values from -Math.PI to +Math.PI - */ +/*--- +info: Cosine is a periodic function with period 2*PI +description: > + Checking if Math.cos(x) equals to Math.cos(x+n*2*Math.PI) with + precision 0.000000000003, where n is an integer from 1 to 100 and + x is one of 10 float point values from -Math.PI to +Math.PI +includes: [$FAIL.js] +---*/ // CHECK#1 prec = 0.000000000003; @@ -43,4 +45,3 @@ for (i = 0; i < snum; i++) } } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.7/S15.8.2.7_A7.js b/test/suite/ch15/15.8/15.8.2/15.8.2.7/S15.8.2.7_A7.js index 3465dff94..603fa27ea 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.7/S15.8.2.7_A7.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.7/S15.8.2.7_A7.js @@ -1,15 +1,18 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Math.cos it is recommended that implementations use the approximation algorithms for IEEE 754 arithmetic contained in fdlibm - * - * @path ch15/15.8/15.8.2/15.8.2.7/S15.8.2.7_A7.js - * @description Checking if Math.cos is approximately equals to its mathematical values on the set of 64 argument values; all the sample values is calculated with LibC - */ - -$INCLUDE("math_precision.js"); -$INCLUDE("math_isequal.js"); +/*--- +info: > + Math.cos it is recommended that implementations use the approximation + algorithms for IEEE 754 arithmetic contained in fdlibm +description: > + Checking if Math.cos is approximately equals to its mathematical + values on the set of 64 argument values; all the sample values is + calculated with LibC +includes: + - math_precision.js + - math_isequal.js +---*/ // CHECK#1 vnum = 64; @@ -156,4 +159,3 @@ for (i = 0; i < vnum; i++) $ERROR("\nx = " + x[i] + "\nlibc.cos(x) = " + y[i] + "\nMath.cos(x) = " + Math.cos(x[i]) + "\nMath.abs(libc.cos(x) - Math.cos(x)) > " + prec + "\n\n"); } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.8/S15.8.2.8_A1.js b/test/suite/ch15/15.8/15.8.2/15.8.2.8/S15.8.2.8_A1.js index 2b79549a7..60471003c 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.8/S15.8.2.8_A1.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.8/S15.8.2.8_A1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is NaN, Math.exp(x) is NaN - * - * @path ch15/15.8/15.8.2/15.8.2.8/S15.8.2.8_A1.js - * @description Checking if Math.exp(NaN) is NaN - */ +/*--- +info: If x is NaN, Math.exp(x) is NaN +description: Checking if Math.exp(NaN) is NaN +---*/ // CHECK#1 var x = NaN; @@ -14,4 +12,3 @@ if (!isNaN(Math.exp(x))) { $ERROR("#1: 'var x=NaN; isNaN(Math.exp(x)) === false'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.8/S15.8.2.8_A2.js b/test/suite/ch15/15.8/15.8.2/15.8.2.8/S15.8.2.8_A2.js index b216ee261..725c02a4b 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.8/S15.8.2.8_A2.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.8/S15.8.2.8_A2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is +0, Math.exp(x) is 1 - * - * @path ch15/15.8/15.8.2/15.8.2.8/S15.8.2.8_A2.js - * @description Checking if Math.exp(+0) is 1 - */ +/*--- +info: If x is +0, Math.exp(x) is 1 +description: Checking if Math.exp(+0) is 1 +---*/ // CHECK#1 var x = +0; @@ -14,4 +12,3 @@ if (Math.exp(x) !== 1) { $ERROR("#1: 'var x = +0; Math.exp(x) !== 1'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.8/S15.8.2.8_A3.js b/test/suite/ch15/15.8/15.8.2/15.8.2.8/S15.8.2.8_A3.js index a5dc78a91..81edd144b 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.8/S15.8.2.8_A3.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.8/S15.8.2.8_A3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is -0, Math.exp(x) is 1 - * - * @path ch15/15.8/15.8.2/15.8.2.8/S15.8.2.8_A3.js - * @description Checking if Math.exp(-0) is 1 - */ +/*--- +info: If x is -0, Math.exp(x) is 1 +description: Checking if Math.exp(-0) is 1 +---*/ // CHECK#1 var x = -0; @@ -14,4 +12,3 @@ if (Math.exp(x) !== 1) { $ERROR("#1: 'var x = -0; Math.exp(x) !== 1'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.8/S15.8.2.8_A4.js b/test/suite/ch15/15.8/15.8.2/15.8.2.8/S15.8.2.8_A4.js index 110af2bc9..4e7f5543b 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.8/S15.8.2.8_A4.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.8/S15.8.2.8_A4.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is +Infinity, Math.exp(x) is +Ifinity - * - * @path ch15/15.8/15.8.2/15.8.2.8/S15.8.2.8_A4.js - * @description Checking if Math.exp(+Infinity) is +Ifinity - */ +/*--- +info: If x is +Infinity, Math.exp(x) is +Ifinity +description: Checking if Math.exp(+Infinity) is +Ifinity +---*/ // CHECK#1 var x = +Infinity; @@ -14,4 +12,3 @@ if (Math.exp(x) !== +Infinity) { $ERROR("#1: 'var x = +Infinity; Math.exp(x) !== +Infinity'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.8/S15.8.2.8_A5.js b/test/suite/ch15/15.8/15.8.2/15.8.2.8/S15.8.2.8_A5.js index 479b20a06..c4819b89c 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.8/S15.8.2.8_A5.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.8/S15.8.2.8_A5.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is -Infinity, Math.exp(x) is +0 - * - * @path ch15/15.8/15.8.2/15.8.2.8/S15.8.2.8_A5.js - * @description Checking if Math.exp(-Infinity) is +0 - */ +/*--- +info: If x is -Infinity, Math.exp(x) is +0 +description: Checking if Math.exp(-Infinity) is +0 +---*/ // CHECK#1 var x = -Infinity; @@ -14,4 +12,3 @@ if (Math.exp(x) !== +0) { $ERROR("#1: 'var x = -Infinity; Math.exp(x) !== +0'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.8/S15.8.2.8_A6.js b/test/suite/ch15/15.8/15.8.2/15.8.2.8/S15.8.2.8_A6.js index 15bd288a7..3b0701316 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.8/S15.8.2.8_A6.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.8/S15.8.2.8_A6.js @@ -1,15 +1,18 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Math.exp, recommended that implementations use the approximation algorithms for IEEE 754 arithmetic contained in fdlibm - * - * @path ch15/15.8/15.8.2/15.8.2.8/S15.8.2.8_A6.js - * @description Checking if Math.exp is approximately equals to its mathematical values on the set of 64 argument values; all the sample values is calculated with LibC - */ - -$INCLUDE("math_precision.js"); -$INCLUDE("math_isequal.js"); +/*--- +info: > + Math.exp, recommended that implementations use the approximation + algorithms for IEEE 754 arithmetic contained in fdlibm +description: > + Checking if Math.exp is approximately equals to its mathematical + values on the set of 64 argument values; all the sample values is + calculated with LibC +includes: + - math_precision.js + - math_isequal.js +---*/ // CHECK#1 vnum = 64; @@ -158,4 +161,3 @@ for (i = 0; i < vnum; i++) $ERROR("\nx = " + x[i] + "\nlibc.exp(x) = " + y[i] + "\nMath.exp(x) = " + Math.exp(x[i]) + "\nMath.abs(libc.exp(x) - Math.exp(x)) > " + prec + "\n\n"); } } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.9/S15.8.2.9_A1.js b/test/suite/ch15/15.8/15.8.2/15.8.2.9/S15.8.2.9_A1.js index b7a457c71..33c292794 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.9/S15.8.2.9_A1.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.9/S15.8.2.9_A1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is NaN, Math.floor(x) is NaN - * - * @path ch15/15.8/15.8.2/15.8.2.9/S15.8.2.9_A1.js - * @description Checking if Math.floor(NaN) is NaN - */ +/*--- +info: If x is NaN, Math.floor(x) is NaN +description: Checking if Math.floor(NaN) is NaN +---*/ // CHECK#1 var x = NaN; @@ -14,4 +12,3 @@ if (!isNaN(Math.floor(x))) { $ERROR("#1: 'var x=NaN; isNaN(Math.floor(x)) === false'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.9/S15.8.2.9_A2.js b/test/suite/ch15/15.8/15.8.2/15.8.2.9/S15.8.2.9_A2.js index e512ef187..2932b1919 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.9/S15.8.2.9_A2.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.9/S15.8.2.9_A2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is +0, Math.floor(x) is +0 - * - * @path ch15/15.8/15.8.2/15.8.2.9/S15.8.2.9_A2.js - * @description Checking if Math.floor(x) is +0, where x is +0 - */ +/*--- +info: If x is +0, Math.floor(x) is +0 +description: Checking if Math.floor(x) is +0, where x is +0 +---*/ // CHECK#1 var x = +0; @@ -14,4 +12,3 @@ if (Math.floor(x) !== +0) { $ERROR("#1: 'var x = +0; Math.floor(x) !== +0'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.9/S15.8.2.9_A3.js b/test/suite/ch15/15.8/15.8.2/15.8.2.9/S15.8.2.9_A3.js index 61e385e77..4bc077485 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.9/S15.8.2.9_A3.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.9/S15.8.2.9_A3.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is -0, Math.floor(x) is -0 - * - * @path ch15/15.8/15.8.2/15.8.2.9/S15.8.2.9_A3.js - * @description Checking if Math.floor(x) is -0, where x is -0 - */ +/*--- +info: If x is -0, Math.floor(x) is -0 +description: Checking if Math.floor(x) is -0, where x is -0 +---*/ // CHECK#1 var x = -0; @@ -14,4 +12,3 @@ if (Math.floor(x) !== -0) { $ERROR("#1: 'var x = -0; Math.floor(x) !== -0'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.9/S15.8.2.9_A4.js b/test/suite/ch15/15.8/15.8.2/15.8.2.9/S15.8.2.9_A4.js index 4f85a55f1..8dd418051 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.9/S15.8.2.9_A4.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.9/S15.8.2.9_A4.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is +Infinity, Math.floor(x) is +Infinity - * - * @path ch15/15.8/15.8.2/15.8.2.9/S15.8.2.9_A4.js - * @description Checking if Math.floor(x) is +Infinity, where x is +Infinity - */ +/*--- +info: If x is +Infinity, Math.floor(x) is +Infinity +description: Checking if Math.floor(x) is +Infinity, where x is +Infinity +---*/ // CHECK#1 var x = +Infinity; @@ -14,4 +12,3 @@ if (Math.floor(x) !== +Infinity) { $ERROR("#1: 'var x = +Infinity; Math.floor(x) !== +Infinity'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.9/S15.8.2.9_A5.js b/test/suite/ch15/15.8/15.8.2/15.8.2.9/S15.8.2.9_A5.js index 9c2fcba25..fc87edbf2 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.9/S15.8.2.9_A5.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.9/S15.8.2.9_A5.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is -Infinity, Math.floor(x) is -Infinity - * - * @path ch15/15.8/15.8.2/15.8.2.9/S15.8.2.9_A5.js - * @description Checking if Math.floor(x) is -Infinity, where x is -Infinity - */ +/*--- +info: If x is -Infinity, Math.floor(x) is -Infinity +description: Checking if Math.floor(x) is -Infinity, where x is -Infinity +---*/ // CHECK#1 var x = -Infinity; @@ -14,4 +12,3 @@ if (Math.floor(x) !== -Infinity) { $ERROR("#1: 'var x = -Infinity; Math.floor(x) !== -Infinity'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.9/S15.8.2.9_A6.js b/test/suite/ch15/15.8/15.8.2/15.8.2.9/S15.8.2.9_A6.js index ae9305f07..80479c866 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.9/S15.8.2.9_A6.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.9/S15.8.2.9_A6.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * If x is greater than 0 but less than 1, Math.floor(x) is +0 - * - * @path ch15/15.8/15.8.2/15.8.2.9/S15.8.2.9_A6.js - * @description Checking if Math.floor(x) is +0, where x is greater than 0 but less than 1 - */ +/*--- +info: If x is greater than 0 but less than 1, Math.floor(x) is +0 +description: > + Checking if Math.floor(x) is +0, where x is greater than 0 but + less than 1 +---*/ // CHECK#1 var x = 0.000000000000001; @@ -28,4 +28,3 @@ if (Math.floor(x) !== +0) { $ERROR("#3: 'var x = 0.5; Math.ceil(x) !== +0'"); } - diff --git a/test/suite/ch15/15.8/15.8.2/15.8.2.9/S15.8.2.9_A7.js b/test/suite/ch15/15.8/15.8.2/15.8.2.9/S15.8.2.9_A7.js index 7cd585b77..a174698e8 100644 --- a/test/suite/ch15/15.8/15.8.2/15.8.2.9/S15.8.2.9_A7.js +++ b/test/suite/ch15/15.8/15.8.2/15.8.2.9/S15.8.2.9_A7.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The value of Math.floor(x) is the same as the value of -Math.ceil(-x) - * - * @path ch15/15.8/15.8.2/15.8.2.9/S15.8.2.9_A7.js - * @description Checking if Math.floor(x) is equal to -Math.ceil(-x) on 2000 floating-point argument values - */ +/*--- +info: The value of Math.floor(x) is the same as the value of -Math.ceil(-x) +description: > + Checking if Math.floor(x) is equal to -Math.ceil(-x) on 2000 + floating-point argument values +---*/ // CHECK#1 for (i=-1000; i<1000; i++) @@ -17,4 +17,3 @@ for (i=-1000; i<1000; i++) $ERROR("#1: 'x = " + x + "; Math.floor(x) !== -Math.ceil(-x)'"); } } - |