diff options
Diffstat (limited to 'test/suite/ch11/11.5')
97 files changed, 559 insertions, 701 deletions
diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A1.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A1.js index 1a9876c01..06c4997c1 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A1.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_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. -/** - * White Space and Line Terminator between MultiplicativeExpression and "*" or between "*" and UnaryExpression are allowed - * - * @path ch11/11.5/11.5.1/S11.5.1_A1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between MultiplicativeExpression and "*" + or between "*" and UnaryExpression are allowed +description: Checking by using eval +---*/ //CHECK#1 if (eval("1\u0009*\u00091") !== 1) { @@ -57,4 +57,3 @@ if (eval("1\u2029*\u20291") !== 1) { if (eval("1\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029*\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20291") !== 1) { $ERROR('#10: 1\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029*\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u20291 === 1'); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.1_T1.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.1_T1.js index ed649ace5..1ca420693 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.1_T1.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.1_T1.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. -/** - * Operator x * y uses GetValue - * - * @path ch11/11.5/11.5.1/S11.5.1_A2.1_T1.js - * @description Either Type is not Reference or GetBase is not null - */ +/*--- +info: Operator x * y uses GetValue +description: Either Type is not Reference or GetBase is not null +---*/ //CHECK#1 if (1 * 1 !== 1) { @@ -40,4 +38,3 @@ objecty.prop = 1; if (objectx.prop * objecty.prop !== 1) { $ERROR('#5: var objectx = new Object(); var objecty = new Object(); objectx.prop = 1; objecty.prop = 1; objectx.prop * objecty.prop === 1. Actual: ' + (objectx.prop * objecty.prop)); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.1_T2.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.1_T2.js index e1f16da9d..a4d31c9a9 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.1_T2.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.1_T2.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. -/** - * Operator x * y uses GetValue - * - * @path ch11/11.5/11.5.1/S11.5.1_A2.1_T2.js - * @description If GetBase(x) is null, throw ReferenceError - */ +/*--- +info: Operator x * y uses GetValue +description: If GetBase(x) is null, throw ReferenceError +---*/ //CHECK#1 try { @@ -18,5 +16,3 @@ catch (e) { $ERROR('#1.2: x * 1 throw ReferenceError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.1_T3.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.1_T3.js index 22af7df20..fd70e9867 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.1_T3.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.1_T3.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. -/** - * Operator x * y uses GetValue - * - * @path ch11/11.5/11.5.1/S11.5.1_A2.1_T3.js - * @description If GetBase(y) is null, throw ReferenceError - */ +/*--- +info: Operator x * y uses GetValue +description: If GetBase(y) is null, throw ReferenceError +---*/ //CHECK#1 try { @@ -18,5 +16,3 @@ catch (e) { $ERROR('#1.2: 1 * y throw ReferenceError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.2_T1.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.2_T1.js index 932acabb2..8a209af85 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.2_T1.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.2_T1.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. -/** - * Operator x * y uses [[Default Value]] - * - * @path ch11/11.5/11.5.1/S11.5.1_A2.2_T1.js - * @description If Type(value) is Object, evaluate ToPrimitive(value, Number) - */ +/*--- +info: Operator x * y uses [[Default Value]] +description: If Type(value) is Object, evaluate ToPrimitive(value, Number) +---*/ //CHECK#1 if ({valueOf: function() {return 1}} * 1 !== 1) { @@ -68,4 +66,3 @@ catch (e) { $ERROR('#8.2: 1 * {valueOf: function() {return {}}, toString: function() {return {}}} throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.3_T1.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.3_T1.js index ba58724a9..df36f1028 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.3_T1.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.3_T1.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. -/** - * ToNumber(first expression) is called first, and then ToNumber(second expression) - * - * @path ch11/11.5/11.5.1/S11.5.1_A2.3_T1.js - * @description Checking with "throw" - */ +/*--- +info: > + ToNumber(first expression) is called first, and then ToNumber(second + expression) +description: Checking with "throw" +---*/ //CHECK#1 var x = { valueOf: function () { throw "x"; } }; @@ -23,4 +23,3 @@ try { } } } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.4_T1.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.4_T1.js index 504923aee..f0d086640 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.4_T1.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.4_T1.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. -/** - * First expression is evaluated first, and then second expression - * - * @path ch11/11.5/11.5.1/S11.5.1_A2.4_T1.js - * @description Checking with "=" - */ +/*--- +info: First expression is evaluated first, and then second expression +description: Checking with "=" +---*/ //CHECK#1 var x = 0; @@ -19,5 +17,3 @@ var x = 0; if (x * (x = 1) !== 0) { $ERROR('#2: var x = 0; x * (x = 1) === 0. Actual: ' + (x * (x = 1))); } - - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.4_T2.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.4_T2.js index 262f2e7fc..17146f95b 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.4_T2.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.4_T2.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. -/** - * First expression is evaluated first, and then second expression - * - * @path ch11/11.5/11.5.1/S11.5.1_A2.4_T2.js - * @description Checking with "throw" - */ +/*--- +info: First expression is evaluated first, and then second expression +description: Checking with "throw" +---*/ //CHECK#1 var x = function () { throw "x"; }; @@ -23,4 +21,3 @@ try { } } } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.4_T3.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.4_T3.js index edcb5e006..e0280e32f 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.4_T3.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A2.4_T3.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. -/** - * First expression is evaluated first, and then second expression - * - * @path ch11/11.5/11.5.1/S11.5.1_A2.4_T3.js - * @description Checking with undeclarated variables - */ +/*--- +info: First expression is evaluated first, and then second expression +description: Checking with undeclarated variables +---*/ //CHECK#1 try { @@ -23,5 +21,3 @@ catch (e) { if ((y = 1) * y !== 1) { $ERROR('#2: (y = 1) * y === 1. Actual: ' + ((y = 1) * y)); } - - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T1.1.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T1.1.js index de1e6dfdb..0f0f8b6dc 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T1.1.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T1.1.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. -/** - * Operator x * y returns ToNumber(x) * ToNumber(y) - * - * @path ch11/11.5/11.5.1/S11.5.1_A3_T1.1.js - * @description Type(x) and Type(y) vary between primitive boolean and Boolean object - */ +/*--- +info: Operator x * y returns ToNumber(x) * ToNumber(y) +description: > + Type(x) and Type(y) vary between primitive boolean and Boolean + object +---*/ //CHECK#1 if (true * true !== 1) { @@ -27,4 +27,3 @@ if (true * new Boolean(true) !== 1) { if (new Boolean(true) * new Boolean(true) !== 1) { $ERROR('#4: new Boolean(true) * new Boolean(true) === 1. Actual: ' + (new Boolean(true) * new Boolean(true))); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T1.2.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T1.2.js index 1e0a49387..eb8a44fdb 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T1.2.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T1.2.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. -/** - * Operator x * y returns ToNumber(x) * ToNumber(y) - * - * @path ch11/11.5/11.5.1/S11.5.1_A3_T1.2.js - * @description Type(x) and Type(y) vary between primitive number and Number object - */ +/*--- +info: Operator x * y returns ToNumber(x) * ToNumber(y) +description: Type(x) and Type(y) vary between primitive number and Number object +---*/ //CHECK#1 if (1 * 1 !== 1) { @@ -27,5 +25,3 @@ if (1 * new Number(1) !== 1) { if (new Number(1) * new Number(1) !== 1) { $ERROR('#4: new Number(1) * new Number(1) === 1. Actual: ' + (new Number(1) * new Number(1))); } - - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T1.3.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T1.3.js index e04ab70ea..e8b95dd7b 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T1.3.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T1.3.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. -/** - * Operator x * y returns ToNumber(x) * ToNumber(y) - * - * @path ch11/11.5/11.5.1/S11.5.1_A3_T1.3.js - * @description Type(x) and Type(y) vary between primitive string and String object - */ +/*--- +info: Operator x * y returns ToNumber(x) * ToNumber(y) +description: Type(x) and Type(y) vary between primitive string and String object +---*/ //CHECK#1 if ("1" * "1" !== 1) { @@ -37,4 +35,3 @@ if (isNaN("x" * "1") !== true) { if (isNaN("1" * "x") !== true) { $ERROR('#6: "1" * "x" === Not-a-Number. Actual: ' + ("1" * "x")); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T1.4.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T1.4.js index 2dbe84f97..3bd660f7b 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T1.4.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T1.4.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. -/** - * Operator x * y returns ToNumber(x) * ToNumber(y) - * - * @path ch11/11.5/11.5.1/S11.5.1_A3_T1.4.js - * @description Type(x) and Type(y) vary between Null and Undefined - */ +/*--- +info: Operator x * y returns ToNumber(x) * ToNumber(y) +description: Type(x) and Type(y) vary between Null and Undefined +---*/ //CHECK#1 if (isNaN(null * undefined) !== true) { @@ -27,4 +25,3 @@ if (isNaN(undefined * undefined) !== true) { if (null * null !== 0) { $ERROR('#4: null * null === 0. Actual: ' + (null * null)); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T1.5.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T1.5.js index 061e0ff27..0a83e17c3 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T1.5.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T1.5.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. -/** - * Operator x * y returns ToNumber(x) * ToNumber(y) - * - * @path ch11/11.5/11.5.1/S11.5.1_A3_T1.5.js - * @description Type(x) and Type(y) vary between Object object and Function object - */ +/*--- +info: Operator x * y returns ToNumber(x) * ToNumber(y) +description: Type(x) and Type(y) vary between Object object and Function object +---*/ //CHECK#1 if (isNaN({} * function(){return 1}) !== true) { @@ -27,4 +25,3 @@ if (isNaN(function(){return 1} * function(){return 1}) !== true) { if (isNaN({} * {}) !== true) { $ERROR('#4: {} * {} === Not-a-Number. Actual: ' + ({} * {})); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.1.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.1.js index 08a913b95..4999b6154 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.1.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.1.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. -/** - * Operator x * y returns ToNumber(x) * ToNumber(y) - * - * @path ch11/11.5/11.5.1/S11.5.1_A3_T2.1.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Number (primitive and object) - */ +/*--- +info: Operator x * y returns ToNumber(x) * ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Number (primitive and object) +---*/ //CHECK#1 if (true * 1 !== 1) { @@ -47,4 +47,3 @@ if (new Boolean(true) * new Number(1) !== 1) { if (new Number(1) * new Boolean(true) !== 1) { $ERROR('#8: new Number(1) * new Boolean(true) === 1. Actual: ' + (new Number(1) * new Boolean(true))); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.2.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.2.js index 063c4da9e..9d4167f7f 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.2.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.2.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. -/** - * Operator x * y returns ToNumber(x) * ToNumber(y) - * - * @path ch11/11.5/11.5.1/S11.5.1_A3_T2.2.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and String (primitive and object) - */ +/*--- +info: Operator x * y returns ToNumber(x) * ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and String (primitive and object) +---*/ //CHECK#1 if ("1" * 1 !== 1) { @@ -57,4 +57,3 @@ if (isNaN("x" * 1) !== true) { if (isNaN(1 * "x") !== true) { $ERROR('#10: 1 * "x" === Not-a-Number. Actual: ' + (1 * "x")); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.3.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.3.js index cfab7ba6b..3633adfd2 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.3.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.3.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. -/** - * Operator x * y returns ToNumber(x) * ToNumber(y) - * - * @path ch11/11.5/11.5.1/S11.5.1_A3_T2.3.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Null - */ +/*--- +info: Operator x * y returns ToNumber(x) * ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Null +---*/ //CHECK#1 if (1 * null !== 0) { @@ -27,4 +27,3 @@ if (new Number(1) * null !== 0) { if (null * new Number(1) !== 0) { $ERROR('#4: null * new Number(1) === 0. Actual: ' + (null * new Number(1))); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.4.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.4.js index 0216310cf..092befa78 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.4.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.4.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. -/** - * Operator x * y returns ToNumber(x) * ToNumber(y) - * - * @path ch11/11.5/11.5.1/S11.5.1_A3_T2.4.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Undefined - */ +/*--- +info: Operator x * y returns ToNumber(x) * ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Undefined +---*/ //CHECK#1 if (isNaN(1 * undefined) !== true) { @@ -27,4 +27,3 @@ if (isNaN(new Number(1) * undefined) !== true) { if (isNaN(undefined * new Number(1)) !== true) { $ERROR('#4: undefined * new Number(1) === Not-a-Number. Actual: ' + (undefined * new Number(1))); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.5.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.5.js index 5d92d9827..26a4a1977 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.5.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.5.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. -/** - * Operator x * y returns ToNumber(x) * ToNumber(y) - * - * @path ch11/11.5/11.5.1/S11.5.1_A3_T2.5.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Boolean (primitive and object) - */ +/*--- +info: Operator x * y returns ToNumber(x) * ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Boolean (primitive and object) +---*/ //CHECK#1 if (true * "1" !== 1) { @@ -47,4 +47,3 @@ if (new Boolean(true) * new String("1") !== 1) { if (new String("1") * new Boolean(true) !== 1) { $ERROR('#8: new String("1") * new Boolean(true) === 1. Actual: ' + (new String("1") * new Boolean(true))); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.6.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.6.js index 429683ff2..bc9c1821d 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.6.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.6.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. -/** - * Operator x * y returns ToNumber(x) * ToNumber(y) - * - * @path ch11/11.5/11.5.1/S11.5.1_A3_T2.6.js - * @description Type(x) is different from Type(y) and both types vary between primitive String (primitive or object) and Undefined - */ +/*--- +info: Operator x * y returns ToNumber(x) * ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + primitive String (primitive or object) and Undefined +---*/ //CHECK#1 if (isNaN("1" * undefined) !== true) { @@ -27,4 +27,3 @@ if (isNaN(new String("1") * undefined) !== true) { if (isNaN(undefined * new String("1")) !== true) { $ERROR('#4: undefined * new String("1") === Not-a-Number. Actual: ' + (undefined * new String("1"))); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.7.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.7.js index 786f23057..dc65cae9a 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.7.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.7.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. -/** - * Operator x * y returns ToNumber(x) * ToNumber(y) - * - * @path ch11/11.5/11.5.1/S11.5.1_A3_T2.7.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Null - */ +/*--- +info: Operator x * y returns ToNumber(x) * ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Null +---*/ //CHECK#1 if ("1" * null !== 0) { @@ -27,4 +27,3 @@ if (new String("1") * null !== 0) { if (null * new String("1") !== 0) { $ERROR('#4: null * new String("1") === 0. Actual: ' + (null * new String("1"))); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.8.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.8.js index ef7ae0503..8181085c8 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.8.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.8.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. -/** - * Operator x * y returns ToNumber(x) * ToNumber(y) - * - * @path ch11/11.5/11.5.1/S11.5.1_A3_T2.8.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Undefined - */ +/*--- +info: Operator x * y returns ToNumber(x) * ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Undefined +---*/ //CHECK#1 if (isNaN(true * undefined) !== true) { @@ -27,4 +27,3 @@ if (isNaN(new Boolean(true) * undefined) !== true) { if (isNaN(undefined * new Boolean(true)) !== true) { $ERROR('#4: undefined * new Boolean(true) === Not-a-Number. Actual: ' + (undefined * new Boolean(true))); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.9.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.9.js index 377cb00f0..2c423af1f 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.9.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A3_T2.9.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. -/** - * Operator x * y returns ToNumber(x) * ToNumber(y) - * - * @path ch11/11.5/11.5.1/S11.5.1_A3_T2.9.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Null - */ +/*--- +info: Operator x * y returns ToNumber(x) * ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Null +---*/ //CHECK#1 if (true * null !== 0) { @@ -27,4 +27,3 @@ if (new Boolean(true) * null !== 0) { if (null * new Boolean(true) !== 0) { $ERROR('#4: null * new Boolean(true) === 0. Actual: ' + (null * new Boolean(true))); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T1.1.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T1.1.js index d3b5006ce..54b8ffcf0 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T1.1.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T1.1.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 result of a floating-point multiplication is governed by the rules of IEEE 754 double-precision arithmetics - * - * @path ch11/11.5/11.5.1/S11.5.1_A4_T1.1.js - * @description If left operand is NaN, the result is NaN - */ +/*--- +info: > + The result of a floating-point multiplication is governed by the rules of + IEEE 754 double-precision arithmetics +description: If left operand is NaN, the result is NaN +---*/ //CHECK#1 if (isNaN(Number.NaN * Number.NaN) !== true) { @@ -46,5 +46,4 @@ if (isNaN(Number.NaN * Number.MIN_VALUE) !== true) { //CHECK#8 if (isNaN(Number.NaN * 1) !== true) { $ERROR('#8: NaN * 1 === Not-a-Number. Actual: ' + (NaN * 1)); -} - +} diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T1.2.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T1.2.js index 2f1d7c1c0..90ad78554 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T1.2.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T1.2.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 result of a floating-point multiplication is governed by the rules of IEEE 754 double-precision arithmetics - * - * @path ch11/11.5/11.5.1/S11.5.1_A4_T1.2.js - * @description If right operand is NaN, the result is NaN - */ +/*--- +info: > + The result of a floating-point multiplication is governed by the rules of + IEEE 754 double-precision arithmetics +description: If right operand is NaN, the result is NaN +---*/ //CHECK#1 if (isNaN(Number.NaN * Number.NaN) !== true) { @@ -47,4 +47,3 @@ if (isNaN(Number.MIN_VALUE * Number.NaN) !== true) { if (isNaN(1 * Number.NaN) !== true) { $ERROR('#8: 1 * NaN === Not-a-Number. Actual: ' + (1 * NaN)); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T2.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T2.js index f6bc87a6f..b92384bc0 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T2.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T2.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. -/** - * The result of a floating-point multiplication is governed by the rules of IEEE 754 double-precision arithmetics - * - * @path ch11/11.5/11.5.1/S11.5.1_A4_T2.js - * @description The sign of the result is positive if both operands have the same sign, negative if the operands have different signs - */ +/*--- +info: > + The result of a floating-point multiplication is governed by the rules of + IEEE 754 double-precision arithmetics +description: > + The sign of the result is positive if both operands have the same + sign, negative if the operands have different signs +---*/ //CHECK#1 if (1 * 1 !== 1) { @@ -63,4 +65,3 @@ if (-0 * -0 !== 0) { $ERROR('#8.2: 0 * -0 === - 0. Actual: +0'); } } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T3.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T3.js index 6bc264f90..7af52e48d 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T3.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T3.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 result of a floating-point multiplication is governed by the rules of IEEE 754 double-precision arithmetics - * - * @path ch11/11.5/11.5.1/S11.5.1_A4_T3.js - * @description Multiplication of an infinity by a zero results in NaN - */ +/*--- +info: > + The result of a floating-point multiplication is governed by the rules of + IEEE 754 double-precision arithmetics +description: Multiplication of an infinity by a zero results in NaN +---*/ //CHECK#1 if (isNaN(Number.NEGATIVE_INFINITY * 0) !== true) { @@ -47,4 +47,3 @@ if (isNaN(Number.POSITIVE_INFINITY * 0) !== true) { if (isNaN(-0 * Number.POSITIVE_INFINITY) !== true) { $ERROR('#8: -0 * Infinity === Not-a-Number. Actual: ' + (-0 * Infinity)); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T4.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T4.js index 5603e976e..e627c6df3 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T4.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T4.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. -/** - * The result of a floating-point multiplication is governed by the rules of IEEE 754 double-precision arithmetics - * - * @path ch11/11.5/11.5.1/S11.5.1_A4_T4.js - * @description Multiplication of an infinity by an infinity results in an infinity of appropriate sign - */ +/*--- +info: > + The result of a floating-point multiplication is governed by the rules of + IEEE 754 double-precision arithmetics +description: > + Multiplication of an infinity by an infinity results in an + infinity of appropriate sign +---*/ //CHECK#1 if (Number.NEGATIVE_INFINITY * Number.NEGATIVE_INFINITY !== Number.POSITIVE_INFINITY) { @@ -27,4 +29,3 @@ if (Number.NEGATIVE_INFINITY * Number.POSITIVE_INFINITY !== Number.NEGATIVE_INFI if (Number.POSITIVE_INFINITY * Number.NEGATIVE_INFINITY !== Number.NEGATIVE_INFINITY) { $ERROR('#4: Infinity * -Infinity === -Infinity. Actual: ' + (Infinity * -Infinity)); } - diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T5.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T5.js index e52526d3a..404d87ecd 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T5.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T5.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. -/** - * The result of a floating-point multiplication is governed by the rules of IEEE 754 double-precision arithmetics - * - * @path ch11/11.5/11.5.1/S11.5.1_A4_T5.js - * @description Multiplication of an infinity by a finite non-zero value results in a signed infinity - */ +/*--- +info: > + The result of a floating-point multiplication is governed by the rules of + IEEE 754 double-precision arithmetics +description: > + Multiplication of an infinity by a finite non-zero value results + in a signed infinity +---*/ //CHECK#1 if (Number.NEGATIVE_INFINITY * -1 !== Number.POSITIVE_INFINITY) { @@ -46,5 +48,4 @@ if (Number.NEGATIVE_INFINITY * Number.MIN_VALUE !== Number.NEGATIVE_INFINITY) { //CHECK#8 if (Number.NEGATIVE_INFINITY * Number.MIN_VALUE !== Number.MIN_VALUE * Number.NEGATIVE_INFINITY) { $ERROR('#8: -Infinity * Number.MIN_VALUE === Number.MIN_VALUE * -Infinity. Actual: ' + (-Infinity * Number.MIN_VALUE)); -} - +} diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T6.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T6.js index 7432a3146..a15968cc1 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T6.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T6.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. -/** - * The result of a floating-point multiplication is governed by the rules of IEEE 754 double-precision arithmetics - * - * @path ch11/11.5/11.5.1/S11.5.1_A4_T6.js - * @description If the magnitude is too large to represent, the result is then an infinity of appropriate sign - */ +/*--- +info: > + The result of a floating-point multiplication is governed by the rules of + IEEE 754 double-precision arithmetics +description: > + If the magnitude is too large to represent, the result is then an + infinity of appropriate sign +---*/ //CHECK#1 if (Number.MAX_VALUE * 1.1 !== Number.POSITIVE_INFINITY) { @@ -26,5 +28,4 @@ if (Number.MAX_VALUE * 1 !== Number.MAX_VALUE) { //CHECK#4 if (-1 * Number.MAX_VALUE !== -Number.MAX_VALUE) { $ERROR('#4: -1 * Number.MAX_VALUE === -Number.MAX_VALUE. Actual: ' + (-1 * Number.MAX_VALUE)); -} - +} diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T7.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T7.js index 5a8d203e5..8ee177714 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T7.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T7.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. -/** - * The result of a floating-point multiplication is governed by the rules of IEEE 754 double-precision arithmetics - * - * @path ch11/11.5/11.5.1/S11.5.1_A4_T7.js - * @description If the magnitude is too small to represent, the result is then a zero of appropriate sign - */ +/*--- +info: > + The result of a floating-point multiplication is governed by the rules of + IEEE 754 double-precision arithmetics +description: > + If the magnitude is too small to represent, the result is then a + zero of appropriate sign +---*/ //CHECK#1 if (Number.MIN_VALUE * 0.1 !== 0) { @@ -54,5 +56,4 @@ if (Number.MIN_VALUE * 0.9 !== Number.MIN_VALUE) { //CHECK#8 if (-0.9 * Number.MIN_VALUE !== -Number.MIN_VALUE) { $ERROR('#8: -0.9 * Number.MIN_VALUE === -Number.MIN_VALUE. Actual: ' + (-0.9 * Number.MIN_VALUE)); -} - +} diff --git a/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T8.js b/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T8.js index 0d777e06f..2fc0b6847 100644 --- a/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T8.js +++ b/test/suite/ch11/11.5/11.5.1/S11.5.1_A4_T8.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. -/** - * The result of a floating-point multiplication is governed by the rules of IEEE 754 double-precision arithmetics - * - * @path ch11/11.5/11.5.1/S11.5.1_A4_T8.js - * @description Multiplication is not always associative (x * y * z is the same as (x * y) * z, not x * (y * z)) - */ +/*--- +info: > + The result of a floating-point multiplication is governed by the rules of + IEEE 754 double-precision arithmetics +description: > + Multiplication is not always associative (x * y * z is the same as + (x * y) * z, not x * (y * z)) +---*/ //CHECK#1 if (Number.MAX_VALUE * 1.1 * 0.9 !== (Number.MAX_VALUE * 1.1) * 0.9) { @@ -17,4 +19,3 @@ if (Number.MAX_VALUE * 1.1 * 0.9 !== (Number.MAX_VALUE * 1.1) * 0.9) { if ((Number.MAX_VALUE * 1.1) * 0.9 === Number.MAX_VALUE * (1.1 * 0.9)) { $ERROR('#2: (Number.MAX_VALUE * 1.1) * 0.9 !== Number.MAX_VALUE * (1.1 * 0.9)'); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A1.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A1.js index 0b92880bd..03b1ec57d 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A1.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_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. -/** - * White Space and Line Terminator between MultiplicativeExpression and "/" or between "/" and UnaryExpression are allowed - * - * @path ch11/11.5/11.5.2/S11.5.2_A1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between MultiplicativeExpression and "/" + or between "/" and UnaryExpression are allowed +description: Checking by using eval +---*/ //CHECK#1 if (eval("1\u0009/\u00091") !== 1) { @@ -57,4 +57,3 @@ if (eval("1\u2029/\u20291") !== 1) { if (eval("1\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029/\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20291") !== 1) { $ERROR('#10: 1\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029/\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u20291 === 1'); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.1_T1.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.1_T1.js index c06d2991c..74b54e32d 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.1_T1.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.1_T1.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. -/** - * Operator x / y uses GetValue - * - * @path ch11/11.5/11.5.2/S11.5.2_A2.1_T1.js - * @description Either Type is not Reference or GetBase is not null - */ +/*--- +info: Operator x / y uses GetValue +description: Either Type is not Reference or GetBase is not null +---*/ //CHECK#1 if (1 / 1 !== 1) { @@ -40,5 +38,3 @@ objecty.prop = 1; if (objectx.prop / objecty.prop !== 1) { $ERROR('#5: var objectx = new Object(); var objecty = new Object(); objectx.prop = 1; objecty.prop = 1; objectx.prop / objecty.prop === 1. Actual: ' + (objectx.prop / objecty.prop)); } - - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.1_T2.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.1_T2.js index 68396ed54..2fef528bb 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.1_T2.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.1_T2.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. -/** - * Operator x / y uses GetValue - * - * @path ch11/11.5/11.5.2/S11.5.2_A2.1_T2.js - * @description If GetBase(x) is null, throw ReferenceError - */ +/*--- +info: Operator x / y uses GetValue +description: If GetBase(x) is null, throw ReferenceError +---*/ //CHECK#1 try { @@ -18,5 +16,3 @@ catch (e) { $ERROR('#1.2: x / 1 throw ReferenceError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.1_T3.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.1_T3.js index d0da4868d..714269989 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.1_T3.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.1_T3.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. -/** - * Operator x / y uses GetValue - * - * @path ch11/11.5/11.5.2/S11.5.2_A2.1_T3.js - * @description If GetBase(y) is null, throw ReferenceError - */ +/*--- +info: Operator x / y uses GetValue +description: If GetBase(y) is null, throw ReferenceError +---*/ //CHECK#1 try { @@ -18,4 +16,3 @@ catch (e) { $ERROR('#1.2: 1 / y throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.2_T1.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.2_T1.js index e0d8bc345..efa8222d8 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.2_T1.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.2_T1.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. -/** - * Operator x / y uses [[Default Value]] - * - * @path ch11/11.5/11.5.2/S11.5.2_A2.2_T1.js - * @description If Type(value) is Object, evaluate ToPrimitive(value, Number) - */ +/*--- +info: Operator x / y uses [[Default Value]] +description: If Type(value) is Object, evaluate ToPrimitive(value, Number) +---*/ //CHECK#1 if ({valueOf: function() {return 1}} / 1 !== 1) { @@ -68,4 +66,3 @@ catch (e) { $ERROR('#8.2: 1 / {valueOf: function() {return {}}, toString: function() {return {}}} throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.3_T1.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.3_T1.js index 8c0b9888e..738f4dec2 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.3_T1.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.3_T1.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. -/** - * ToNumber(first expression) is called first, and then ToNumber(second expression) - * - * @path ch11/11.5/11.5.2/S11.5.2_A2.3_T1.js - * @description Checking with "throw" - */ +/*--- +info: > + ToNumber(first expression) is called first, and then ToNumber(second + expression) +description: Checking with "throw" +---*/ //CHECK#1 var x = { valueOf: function () { throw "x"; } }; @@ -23,4 +23,3 @@ try { } } } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.4_T1.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.4_T1.js index 2d2d55efe..3f39f911c 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.4_T1.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.4_T1.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. -/** - * First expression is evaluated first, and then second expression - * - * @path ch11/11.5/11.5.2/S11.5.2_A2.4_T1.js - * @description Checking with "=" - */ +/*--- +info: First expression is evaluated first, and then second expression +description: Checking with "=" +---*/ //CHECK#1 var x = 0; @@ -19,5 +17,3 @@ var x = 0; if (x / (x = 1) !== 0) { $ERROR('#2: var x = 0; x / (x = 1) === 0. Actual: ' + (x / (x = 1))); } - - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.4_T2.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.4_T2.js index 44f0f2327..7b2090572 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.4_T2.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.4_T2.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. -/** - * First expression is evaluated first, and then second expression - * - * @path ch11/11.5/11.5.2/S11.5.2_A2.4_T2.js - * @description Checking with "throw" - */ +/*--- +info: First expression is evaluated first, and then second expression +description: Checking with "throw" +---*/ //CHECK#1 var x = function () { throw "x"; }; @@ -23,4 +21,3 @@ try { } } } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.4_T3.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.4_T3.js index 13ffe9ff3..906c3f1bb 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.4_T3.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A2.4_T3.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. -/** - * First expression is evaluated first, and then second expression - * - * @path ch11/11.5/11.5.2/S11.5.2_A2.4_T3.js - * @description Checking with undeclarated variables - */ +/*--- +info: First expression is evaluated first, and then second expression +description: Checking with undeclarated variables +---*/ //CHECK#1 try { @@ -23,5 +21,3 @@ catch (e) { if ((y = 1) / y !== 1) { $ERROR('#2: (y = 1) / y === 1. Actual: ' + ((y = 1) / y)); } - - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T1.1.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T1.1.js index 5e53abaf2..4ca9b04b8 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T1.1.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T1.1.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. -/** - * Operator x / y returns ToNumber(x) / ToNumber(y) - * - * @path ch11/11.5/11.5.2/S11.5.2_A3_T1.1.js - * @description Type(x) and Type(y) vary between primitive boolean and Boolean object - */ +/*--- +info: Operator x / y returns ToNumber(x) / ToNumber(y) +description: > + Type(x) and Type(y) vary between primitive boolean and Boolean + object +---*/ //CHECK#1 if (true / true !== 1) { @@ -27,4 +27,3 @@ if (true / new Boolean(true) !== 1) { if (new Boolean(true) / new Boolean(true) !== 1) { $ERROR('#4: new Boolean(true) / new Boolean(true) === 1. Actual: ' + (new Boolean(true) / new Boolean(true))); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T1.2.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T1.2.js index 97bb6036d..e0d2ac63d 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T1.2.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T1.2.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. -/** - * Operator x / y returns ToNumber(x) / ToNumber(y) - * - * @path ch11/11.5/11.5.2/S11.5.2_A3_T1.2.js - * @description Type(x) and Type(y) vary between primitive number and Number object - */ +/*--- +info: Operator x / y returns ToNumber(x) / ToNumber(y) +description: Type(x) and Type(y) vary between primitive number and Number object +---*/ //CHECK#1 if (1 / 1 !== 1) { @@ -27,5 +25,3 @@ if (1 / new Number(1) !== 1) { if (new Number(1) / new Number(1) !== 1) { $ERROR('#4: new Number(1) / new Number(1) === 1. Actual: ' + (new Number(1) / new Number(1))); } - - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T1.3.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T1.3.js index 56d1b142c..3ba453d8b 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T1.3.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T1.3.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. -/** - * Operator x / y returns ToNumber(x) / ToNumber(y) - * - * @path ch11/11.5/11.5.2/S11.5.2_A3_T1.3.js - * @description Type(x) and Type(y) vary between primitive string and String object - */ +/*--- +info: Operator x / y returns ToNumber(x) / ToNumber(y) +description: Type(x) and Type(y) vary between primitive string and String object +---*/ //CHECK#1 if ("1" / "1" !== 1) { @@ -37,4 +35,3 @@ if (isNaN("x" / "1") !== true) { if (isNaN("1" / "x") !== true) { $ERROR('#6: "1" / "x" === Not-a-Number. Actual: ' + ("1" / "x")); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T1.4.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T1.4.js index e9269fb45..13e9f6b6e 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T1.4.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T1.4.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. -/** - * Operator x / y returns ToNumber(x) / ToNumber(y) - * - * @path ch11/11.5/11.5.2/S11.5.2_A3_T1.4.js - * @description Type(x) and Type(y) vary between Null and Undefined - */ +/*--- +info: Operator x / y returns ToNumber(x) / ToNumber(y) +description: Type(x) and Type(y) vary between Null and Undefined +---*/ //CHECK#1 if (isNaN(null / undefined) !== true) { @@ -27,4 +25,3 @@ if (isNaN(undefined / undefined) !== true) { if (isNaN(null / null) !== true) { $ERROR('#4: null / null === Not-a-Number. Actual: ' + (null / null)); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T1.5.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T1.5.js index ec57702be..53dfa9736 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T1.5.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T1.5.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. -/** - * Operator x / y returns ToNumber(x) / ToNumber(y) - * - * @path ch11/11.5/11.5.2/S11.5.2_A3_T1.5.js - * @description Type(x) and Type(y) vary between Object object and Function object - */ +/*--- +info: Operator x / y returns ToNumber(x) / ToNumber(y) +description: Type(x) and Type(y) vary between Object object and Function object +---*/ //CHECK#1 if (isNaN({} / function(){return 1}) !== true) { @@ -27,4 +25,3 @@ if (isNaN(function(){return 1} / function(){return 1}) !== true) { if (isNaN({} / {}) !== true) { $ERROR('#4: {} / {} === Not-a-Number. Actual: ' + ({} / {})); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.1.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.1.js index 7cd3f7cf6..12ca6209b 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.1.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.1.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. -/** - * Operator x / y returns ToNumber(x) / ToNumber(y) - * - * @path ch11/11.5/11.5.2/S11.5.2_A3_T2.1.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Boolean (primitive and object) - */ +/*--- +info: Operator x / y returns ToNumber(x) / ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Boolean (primitive and object) +---*/ //CHECK#1 if (true / 1 !== 1) { @@ -47,4 +47,3 @@ if (new Boolean(true) / new Number(1) !== 1) { if (new Number(1) / new Boolean(true) !== 1) { $ERROR('#8: new Number(1) / new Boolean(true) === 1. Actual: ' + (new Number(1) / new Boolean(true))); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.2.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.2.js index 8678544ad..c0b869c78 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.2.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.2.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. -/** - * Operator x / y returns ToNumber(x) / ToNumber(y) - * - * @path ch11/11.5/11.5.2/S11.5.2_A3_T2.2.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and String (primitive and object) - */ +/*--- +info: Operator x / y returns ToNumber(x) / ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and String (primitive and object) +---*/ //CHECK#1 if ("1" / 1 !== 1) { @@ -57,4 +57,3 @@ if (isNaN("x" / 1) !== true) { if (isNaN(1 / "x") !== true) { $ERROR('#10: 1 / "x" === Not-a-Number. Actual: ' + (1 / "x")); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.3.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.3.js index bd37aaefa..c4bcf2ba1 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.3.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.3.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. -/** - * Operator x / y returns ToNumber(x) / ToNumber(y) - * - * @path ch11/11.5/11.5.2/S11.5.2_A3_T2.3.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Null - */ +/*--- +info: Operator x / y returns ToNumber(x) / ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Null +---*/ //CHECK#1 if (1 / null !== Number.POSITIVE_INFINITY) { @@ -27,4 +27,3 @@ if (new Number(1) / null !== Number.POSITIVE_INFINITY) { if (null / new Number(1) !== 0) { $ERROR('#4: null / new Number(1) === 0. Actual: ' + (null / new Number(1))); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.4.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.4.js index a67647f6b..2bcea22f2 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.4.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.4.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. -/** - * Operator x / y returns ToNumber(x) / ToNumber(y) - * - * @path ch11/11.5/11.5.2/S11.5.2_A3_T2.4.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Undefined - */ +/*--- +info: Operator x / y returns ToNumber(x) / ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Undefined +---*/ //CHECK#1 if (isNaN(1 / undefined) !== true) { @@ -27,4 +27,3 @@ if (isNaN(new Number(1) / undefined) !== true) { if (isNaN(undefined / new Number(1)) !== true) { $ERROR('#4: undefined / new Number(1) === Not-a-Number. Actual: ' + (undefined / new Number(1))); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.5.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.5.js index ae723bdae..002c97435 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.5.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.5.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. -/** - * Operator x / y returns ToNumber(x) / ToNumber(y) - * - * @path ch11/11.5/11.5.2/S11.5.2_A3_T2.5.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Boolean (primitive and object) - */ +/*--- +info: Operator x / y returns ToNumber(x) / ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Boolean (primitive and object) +---*/ //CHECK#1 if (true / "1" !== 1) { @@ -47,4 +47,3 @@ if (new Boolean(true) / new String("1") !== 1) { if (new String("1") / new Boolean(true) !== 1) { $ERROR('#8: new String("1") / new Boolean(true) === 1. Actual: ' + (new String("1") / new Boolean(true))); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.6.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.6.js index 728613ebd..b5964f389 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.6.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.6.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. -/** - * Operator x / y returns ToNumber(x) / ToNumber(y) - * - * @path ch11/11.5/11.5.2/S11.5.2_A3_T2.6.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Undefined - */ +/*--- +info: Operator x / y returns ToNumber(x) / ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Undefined +---*/ //CHECK#1 if (isNaN("1" / undefined) !== true) { @@ -27,4 +27,3 @@ if (isNaN(new String("1") / undefined) !== true) { if (isNaN(undefined / new String("1")) !== true) { $ERROR('#4: undefined / new String("1") === Not-a-Number. Actual: ' + (undefined / new String("1"))); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.7.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.7.js index 9a307dc32..97aacb059 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.7.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.7.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. -/** - * Operator x / y returns ToNumber(x) / ToNumber(y) - * - * @path ch11/11.5/11.5.2/S11.5.2_A3_T2.7.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Null - */ +/*--- +info: Operator x / y returns ToNumber(x) / ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Null +---*/ //CHECK#1 if ("1" / null !== Number.POSITIVE_INFINITY) { @@ -27,4 +27,3 @@ if (new String("1") / null !== Number.POSITIVE_INFINITY) { if (null / new String("1") !== 0) { $ERROR('#4: null / new String("1") === 0. Actual: ' + (null / new String("1"))); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.8.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.8.js index a3fb0e50e..190260366 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.8.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.8.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. -/** - * Operator x / y returns ToNumber(x) / ToNumber(y) - * - * @path ch11/11.5/11.5.2/S11.5.2_A3_T2.8.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Undefined - */ +/*--- +info: Operator x / y returns ToNumber(x) / ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Undefined +---*/ //CHECK#1 if (isNaN(true / undefined) !== true) { @@ -27,4 +27,3 @@ if (isNaN(new Boolean(true) / undefined) !== true) { if (isNaN(undefined / new Boolean(true)) !== true) { $ERROR('#4: undefined / new Boolean(true) === Not-a-Number. Actual: ' + (undefined / new Boolean(true))); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.9.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.9.js index 5459c4d04..f94105e98 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.9.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A3_T2.9.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. -/** - * Operator x / y returns ToNumber(x) / ToNumber(y) - * - * @path ch11/11.5/11.5.2/S11.5.2_A3_T2.9.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Null - */ +/*--- +info: Operator x / y returns ToNumber(x) / ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Null +---*/ //CHECK#1 if (true / null !== Number.POSITIVE_INFINITY) { @@ -27,4 +27,3 @@ if (new Boolean(true) / null !== Number.POSITIVE_INFINITY) { if (null / new Boolean(true) !== 0) { $ERROR('#4: null / new Boolean(true) === 0. Actual: ' + (null / new Boolean(true))); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T1.1.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T1.1.js index f98c2b58e..0c748160c 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T1.1.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T1.1.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 result of division is determined by the specification of IEEE 754 arithmetics - * - * @path ch11/11.5/11.5.2/S11.5.2_A4_T1.1.js - * @description If left operand is NaN, the result is NaN - */ +/*--- +info: > + The result of division is determined by the specification of IEEE 754 + arithmetics +description: If left operand is NaN, the result is NaN +---*/ //CHECK#1 if (isNaN(Number.NaN / Number.NaN) !== true) { @@ -46,5 +46,4 @@ if (isNaN(Number.NaN / Number.MIN_VALUE) !== true) { //CHECK#8 if (isNaN(Number.NaN / 1) !== true) { $ERROR('#8: NaN / 1 === Not-a-Number. Actual: ' + (NaN / 1)); -} - +} diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T1.2.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T1.2.js index 57415ff2a..86e399127 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T1.2.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T1.2.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 result of division is determined by the specification of IEEE 754 arithmetics - * - * @path ch11/11.5/11.5.2/S11.5.2_A4_T1.2.js - * @description If right operand is NaN, the result is NaN - */ +/*--- +info: > + The result of division is determined by the specification of IEEE 754 + arithmetics +description: If right operand is NaN, the result is NaN +---*/ //CHECK#1 if (isNaN(Number.NaN / Number.NaN) !== true) { @@ -47,4 +47,3 @@ if (isNaN(Number.MIN_VALUE / Number.NaN) !== true) { if (isNaN(1 / Number.NaN) !== true) { $ERROR('#8: 1 / NaN === Not-a-Number. Actual: ' + (1 / NaN)); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T10.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T10.js index a8a0f25ab..72a7bb6c2 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T10.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T10.js @@ -1,13 +1,16 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The result of division is determined by the specification of IEEE 754 arithmetics - * - * @path ch11/11.5/11.5.2/S11.5.2_A4_T10.js - * @description If both operands are finite and nonzero, the quotient is computed and rounded using IEEE 754 round-to-nearest mode. - * If the magnitude is too small to represent, the result is then a zero of appropriate sign - */ +/*--- +info: > + The result of division is determined by the specification of IEEE 754 + arithmetics +description: > + If both operands are finite and nonzero, the quotient is computed + and rounded using IEEE 754 round-to-nearest mode. If the + magnitude is too small to represent, the result is then a zero of + appropriate sign +---*/ //CHECK#1 if (Number.MIN_VALUE / 2.1 !== 0) { @@ -55,5 +58,4 @@ if (Number.MIN_VALUE / 1.1 !== Number.MIN_VALUE) { //CHECK#8 if (Number.MIN_VALUE / -1.1 !== -Number.MIN_VALUE) { $ERROR('#8: Number.MIN_VALUE / -1.1 === -Number.MIN_VALUE. Actual: ' + (Number.MIN_VALUE / -1.1)); -} - +} diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T2.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T2.js index 4e0143879..6e770263d 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T2.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T2.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. -/** - * The result of division is determined by the specification of IEEE 754 arithmetics - * - * @path ch11/11.5/11.5.2/S11.5.2_A4_T2.js - * @description The sign of the result is positive if both operands have the same sign, negative if the operands have different signs - */ +/*--- +info: > + The result of division is determined by the specification of IEEE 754 + arithmetics +description: > + The sign of the result is positive if both operands have the same + sign, negative if the operands have different signs +---*/ //CHECK#1 if (1 / 1 !== 1) { @@ -27,4 +29,3 @@ if (-1 / 1 !== -1) { if (-1 / -1 !== 1) { $ERROR('#4: -1 / -1 === 1. Actual: ' + (-1 / -1)); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T3.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T3.js index dd67b91f8..d2e952a69 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T3.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T3.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. -/** - * The result of division is determined by the specification of IEEE 754 arithmetics - * - * @path ch11/11.5/11.5.2/S11.5.2_A4_T3.js - * @description Division of an infinity by a zero results in an infinity of appropriate sign - */ +/*--- +info: > + The result of division is determined by the specification of IEEE 754 + arithmetics +description: > + Division of an infinity by a zero results in an infinity of + appropriate sign +---*/ //CHECK#1 if (Number.NEGATIVE_INFINITY / 0 !== Number.NEGATIVE_INFINITY) { @@ -27,4 +29,3 @@ if (Number.POSITIVE_INFINITY / 0 !== Number.POSITIVE_INFINITY) { if (Number.POSITIVE_INFINITY / -0 !== Number.NEGATIVE_INFINITY) { $ERROR('#4: Infinity / -0 === -Infinity. Actual: ' + (Infinity / -0)); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T4.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T4.js index 14804ad6f..e20e39f7e 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T4.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T4.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 result of division is determined by the specification of IEEE 754 arithmetics - * - * @path ch11/11.5/11.5.2/S11.5.2_A4_T4.js - * @description Division of an infinity by an infinity results in NaN - */ +/*--- +info: > + The result of division is determined by the specification of IEEE 754 + arithmetics +description: Division of an infinity by an infinity results in NaN +---*/ //CHECK#1 if (isNaN(Number.NEGATIVE_INFINITY / Number.NEGATIVE_INFINITY) !== true) { @@ -27,4 +27,3 @@ if (isNaN(Number.NEGATIVE_INFINITY / Number.POSITIVE_INFINITY) !== true) { if (isNaN(Number.POSITIVE_INFINITY / Number.NEGATIVE_INFINITY) !== true) { $ERROR('#4: Infinity / -Infinity === Not-a-Number. Actual: ' + (Infinity / -Infinity)); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T5.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T5.js index 3f84058ca..cb259bddf 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T5.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T5.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. -/** - * The result of division is determined by the specification of IEEE 754 arithmetics - * - * @path ch11/11.5/11.5.2/S11.5.2_A4_T5.js - * @description Division of an infinity by a finite non-zero value results in a signed infinity - */ +/*--- +info: > + The result of division is determined by the specification of IEEE 754 + arithmetics +description: > + Division of an infinity by a finite non-zero value results in a + signed infinity +---*/ //CHECK#1 if (Number.NEGATIVE_INFINITY / 1 !== Number.NEGATIVE_INFINITY) { @@ -37,4 +39,3 @@ if (Number.POSITIVE_INFINITY / -Number.MAX_VALUE !== Number.NEGATIVE_INFINITY) { if (Number.NEGATIVE_INFINITY / Number.MIN_VALUE !== Number.NEGATIVE_INFINITY) { $ERROR('#6: -Infinity / Number.MIN_VALUE === -Infinity. Actual: ' + (-Infinity / Number.MIN_VALUE)); } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T6.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T6.js index 7c013ee31..0b9a9b77e 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T6.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T6.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. -/** - * The result of division is determined by the specification of IEEE 754 arithmetics - * - * @path ch11/11.5/11.5.2/S11.5.2_A4_T6.js - * @description Division of a finite value by an infinity results in zero of appropriate sign - */ +/*--- +info: > + The result of division is determined by the specification of IEEE 754 + arithmetics +description: > + Division of a finite value by an infinity results in zero of + appropriate sign +---*/ //CHECK#1 if (1 / Number.NEGATIVE_INFINITY !== -0) { @@ -43,4 +45,3 @@ if (-1 / Number.POSITIVE_INFINITY !== -0) { $ERROR('#4.2: -1 / Infinity === - 0. Actual: +0'); } } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T7.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T7.js index df2b59970..e6813428f 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T7.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T7.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 result of division is determined by the specification of IEEE 754 arithmetics - * - * @path ch11/11.5/11.5.2/S11.5.2_A4_T7.js - * @description Division of a zero by a zero results in NaN - */ +/*--- +info: > + The result of division is determined by the specification of IEEE 754 + arithmetics +description: Division of a zero by a zero results in NaN +---*/ //CHECK#1 if (isNaN(+0 / +0) !== true) { @@ -26,5 +26,4 @@ if (isNaN(+0 / -0) !== true) { //CHECK#4 if (isNaN(-0 / -0) !== true) { $ERROR('#4: -0 / -0 === Not-a-Number. Actual: ' + (-0 / -0)); -} - +} diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T8.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T8.js index 1984de1f2..fc3d81f67 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T8.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T8.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. -/** - * The result of division is determined by the specification of IEEE 754 arithmetics - * - * @path ch11/11.5/11.5.2/S11.5.2_A4_T8.js - * @description Division of a zero by any non-zero finite value -0 results in zero of appropriate sign - */ +/*--- +info: > + The result of division is determined by the specification of IEEE 754 + arithmetics +description: > + Division of a zero by any non-zero finite value -0 results in zero + of appropriate sign +---*/ //CHECK#1 if (-0 / 1 !== -0) { @@ -61,4 +63,3 @@ if (-0 / Number.MIN_VALUE !== -0) { $ERROR('#6.2: -0 / Number.MIN_VALUE === - 0. Actual: +0'); } } - diff --git a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T9.js b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T9.js index 9539057d7..048397746 100644 --- a/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T9.js +++ b/test/suite/ch11/11.5/11.5.2/S11.5.2_A4_T9.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. -/** - * The result of division is determined by the specification of IEEE 754 arithmetics - * - * @path ch11/11.5/11.5.2/S11.5.2_A4_T9.js - * @description If the magnitude is too large to represent, the result is then an infinity of appropriate sign - */ +/*--- +info: > + The result of division is determined by the specification of IEEE 754 + arithmetics +description: > + If the magnitude is too large to represent, the result is then an + infinity of appropriate sign +---*/ //CHECK#1 if (Number.MAX_VALUE / 0.9 !== Number.POSITIVE_INFINITY) { @@ -32,4 +34,3 @@ if (Number.MAX_VALUE / -1 !== -Number.MAX_VALUE) { if (Number.MAX_VALUE / (Number.MAX_VALUE / 0.9) === (Number.MAX_VALUE / Number.MAX_VALUE) / 0.9) { $ERROR('#5: Number.MAX_VALUE / (Number.MAX_VALUE / 0.9) !== (Number.MAX_VALUE / Number.MAX_VALUE) / 0.9'); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A1.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A1.js index c372cc545..eeee0b8e8 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A1.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_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. -/** - * White Space and Line Terminator between MultiplicativeExpression and "%" or between "%" and UnaryExpression are allowed - * - * @path ch11/11.5/11.5.3/S11.5.3_A1.js - * @description Checking by using eval - */ +/*--- +info: > + White Space and Line Terminator between MultiplicativeExpression and "%" + or between "%" and UnaryExpression are allowed +description: Checking by using eval +---*/ //CHECK#1 if (eval("1\u0009%\u00091") !== 0) { @@ -57,4 +57,3 @@ if (eval("1\u2029%\u20291") !== 0) { if (eval("1\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u2029%\u0009\u000B\u000C\u0020\u00A0\u000A\u000D\u2028\u20291") !== 0) { $ERROR('#10: 1\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u2029%\\u0009\\u000B\\u000C\\u0020\\u00A0\\u000A\\u000D\\u2028\\u20291 === 0'); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.1_T1.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.1_T1.js index b2a973d37..4b055393d 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.1_T1.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.1_T1.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. -/** - * Operator x % y uses GetValue - * - * @path ch11/11.5/11.5.3/S11.5.3_A2.1_T1.js - * @description Either Type is not Reference or GetBase is not null - */ +/*--- +info: Operator x % y uses GetValue +description: Either Type is not Reference or GetBase is not null +---*/ //CHECK#1 if (1 % 2 !== 1) { @@ -40,4 +38,3 @@ objecty.prop = 2; if (objectx.prop % objecty.prop !== 1) { $ERROR('#5: var objectx = new Object(); var objecty = new Object(); objectx.prop = 1; objecty.prop = 2; objectx.prop % objecty.prop === 1. Actual: ' + (objectx.prop % objecty.prop)); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.1_T2.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.1_T2.js index 5da5f3cff..ccb9ed76f 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.1_T2.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.1_T2.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. -/** - * Operator x % y uses GetValue - * - * @path ch11/11.5/11.5.3/S11.5.3_A2.1_T2.js - * @description If GetBase(x) is null, throw ReferenceError - */ +/*--- +info: Operator x % y uses GetValue +description: If GetBase(x) is null, throw ReferenceError +---*/ //CHECK#1 try { @@ -18,5 +16,3 @@ catch (e) { $ERROR('#1.2: x % 1 throw ReferenceError. Actual: ' + (e)); } } - - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.1_T3.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.1_T3.js index 20b64080e..eaff21ef2 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.1_T3.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.1_T3.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. -/** - * Operator x % y uses GetValue - * - * @path ch11/11.5/11.5.3/S11.5.3_A2.1_T3.js - * @description If GetBase(y) is null, throw ReferenceError - */ +/*--- +info: Operator x % y uses GetValue +description: If GetBase(y) is null, throw ReferenceError +---*/ //CHECK#1 try { @@ -18,4 +16,3 @@ catch (e) { $ERROR('#1.2: 1 % y throw ReferenceError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.2_T1.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.2_T1.js index ab488af50..1537a0f29 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.2_T1.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.2_T1.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. -/** - * Operator x % y uses [[Default Value]] - * - * @path ch11/11.5/11.5.3/S11.5.3_A2.2_T1.js - * @description If Type(value) is Object, evaluate ToPrimitive(value, Number) - */ +/*--- +info: Operator x % y uses [[Default Value]] +description: If Type(value) is Object, evaluate ToPrimitive(value, Number) +---*/ //CHECK#1 if ({valueOf: function() {return 1}} % 2 !== 1) { @@ -68,4 +66,3 @@ catch (e) { $ERROR('#8.2: 1 % {valueOf: function() {return {}}, toString: function() {return {}}} throw TypeError. Actual: ' + (e)); } } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.3_T1.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.3_T1.js index 836a13ff6..e9af80476 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.3_T1.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.3_T1.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. -/** - * ToNumber(first expression) is called first, and then ToNumber(second expression) - * - * @path ch11/11.5/11.5.3/S11.5.3_A2.3_T1.js - * @description Checking with "throw" - */ +/*--- +info: > + ToNumber(first expression) is called first, and then ToNumber(second + expression) +description: Checking with "throw" +---*/ //CHECK#1 var x = { valueOf: function () { throw "x"; } }; @@ -23,4 +23,3 @@ try { } } } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.4_T1.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.4_T1.js index 7b87a3bf0..93e3df49c 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.4_T1.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.4_T1.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. -/** - * First expression is evaluated first, and then second expression - * - * @path ch11/11.5/11.5.3/S11.5.3_A2.4_T1.js - * @description Checking with "=" - */ +/*--- +info: First expression is evaluated first, and then second expression +description: Checking with "=" +---*/ //CHECK#1 var x = 0; @@ -19,5 +17,3 @@ var x = 1; if (x % (x = 2) !== 1) { $ERROR('#2: var x = 1; x % (x = 2) === 1. Actual: ' + (x % (x = 2))); } - - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.4_T2.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.4_T2.js index f3c306ca1..b778861ae 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.4_T2.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.4_T2.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. -/** - * First expression is evaluated first, and then second expression - * - * @path ch11/11.5/11.5.3/S11.5.3_A2.4_T2.js - * @description Checking with "throw" - */ +/*--- +info: First expression is evaluated first, and then second expression +description: Checking with "throw" +---*/ //CHECK#1 var x = function () { throw "x"; }; @@ -23,4 +21,3 @@ try { } } } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.4_T3.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.4_T3.js index a597a95d2..2d585e0b3 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.4_T3.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A2.4_T3.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. -/** - * First expression is evaluated first, and then second expression - * - * @path ch11/11.5/11.5.3/S11.5.3_A2.4_T3.js - * @description Checking with undeclarated variables - */ +/*--- +info: First expression is evaluated first, and then second expression +description: Checking with undeclarated variables +---*/ //CHECK#1 try { @@ -23,5 +21,3 @@ catch (e) { if ((y = 1) % y !== 0) { $ERROR('#2: (y = 1) % y === 0. Actual: ' + ((y = 1) % y)); } - - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T1.1.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T1.1.js index 816d0efe9..e729afa77 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T1.1.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T1.1.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. -/** - * Operator x % y returns ToNumber(x) % ToNumber(y) - * - * @path ch11/11.5/11.5.3/S11.5.3_A3_T1.1.js - * @description Type(x) and Type(y) vary between primitive boolean and Boolean object - */ +/*--- +info: Operator x % y returns ToNumber(x) % ToNumber(y) +description: > + Type(x) and Type(y) vary between primitive boolean and Boolean + object +---*/ //CHECK#1 if (true % true !== 0) { @@ -27,4 +27,3 @@ if (true % new Boolean(true) !== 0) { if (new Boolean(true) % new Boolean(true) !== 0) { $ERROR('#4: new Boolean(true) % new Boolean(true) === 0. Actual: ' + (new Boolean(true) % new Boolean(true))); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T1.2.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T1.2.js index db3ba1d64..888fb7923 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T1.2.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T1.2.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. -/** - * Operator x % y returns ToNumber(x) % ToNumber(y) - * - * @path ch11/11.5/11.5.3/S11.5.3_A3_T1.2.js - * @description Type(x) and Type(y) vary between primitive number and Number object - */ +/*--- +info: Operator x % y returns ToNumber(x) % ToNumber(y) +description: Type(x) and Type(y) vary between primitive number and Number object +---*/ //CHECK#1 if (1 % 1 !== 0) { @@ -27,5 +25,3 @@ if (1 % new Number(1) !== 0) { if (new Number(1) % new Number(1) !== 0) { $ERROR('#4: new Number(1) % new Number(1) === 0. Actual: ' + (new Number(1) % new Number(1))); } - - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T1.3.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T1.3.js index 3520ef236..dca635358 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T1.3.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T1.3.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. -/** - * Operator x % y returns ToNumber(x) % ToNumber(y) - * - * @path ch11/11.5/11.5.3/S11.5.3_A3_T1.3.js - * @description Type(x) and Type(y) vary between primitive string and String object - */ +/*--- +info: Operator x % y returns ToNumber(x) % ToNumber(y) +description: Type(x) and Type(y) vary between primitive string and String object +---*/ //CHECK#1 if ("1" % "1" !== 0) { @@ -37,4 +35,3 @@ if (isNaN("x" % "1") !== true) { if (isNaN("1" % "x") !== true) { $ERROR('#6: "1" % "x" === Not-a-Number. Actual: ' + ("1" % "x")); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T1.4.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T1.4.js index 0af53ef4e..927937743 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T1.4.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T1.4.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. -/** - * Operator x % y returns ToNumber(x) % ToNumber(y) - * - * @path ch11/11.5/11.5.3/S11.5.3_A3_T1.4.js - * @description Type(x) and Type(y) vary between Null and Undefined - */ +/*--- +info: Operator x % y returns ToNumber(x) % ToNumber(y) +description: Type(x) and Type(y) vary between Null and Undefined +---*/ //CHECK#1 if (isNaN(null % undefined) !== true) { @@ -27,4 +25,3 @@ if (isNaN(undefined % undefined) !== true) { if (isNaN(null % null) !== true) { $ERROR('#4: null % null === Not-a-Number. Actual: ' + (null % null)); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T1.5.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T1.5.js index 85cbbecf2..8c7139091 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T1.5.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T1.5.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. -/** - * Operator x % y returns ToNumber(x) % ToNumber(y) - * - * @path ch11/11.5/11.5.3/S11.5.3_A3_T1.5.js - * @description Type(x) and Type(y) vary between Object object and Function object - */ +/*--- +info: Operator x % y returns ToNumber(x) % ToNumber(y) +description: Type(x) and Type(y) vary between Object object and Function object +---*/ //CHECK#1 if (isNaN({} % function(){return 1}) !== true) { @@ -27,4 +25,3 @@ if (isNaN(function(){return 1} % function(){return 1}) !== true) { if (isNaN({} % {}) !== true) { $ERROR('#4: {} % {} === Not-a-Number. Actual: ' + ({} % {})); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.1.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.1.js index 4cde92634..1544f8729 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.1.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.1.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. -/** - * Operator x % y returns ToNumber(x) % ToNumber(y) - * - * @path ch11/11.5/11.5.3/S11.5.3_A3_T2.1.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Boolean (primitive and object) - */ +/*--- +info: Operator x % y returns ToNumber(x) % ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Boolean (primitive and object) +---*/ //CHECK#1 if (true % 1 !== 0) { @@ -47,4 +47,3 @@ if (new Boolean(true) % new Number(1) !== 0) { if (new Number(1) % new Boolean(true) !== 0) { $ERROR('#8: new Number(1) % new Boolean(true) === 0. Actual: ' + (new Number(1) % new Boolean(true))); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.2.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.2.js index 6196513ce..0d077394f 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.2.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.2.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. -/** - * Operator x % y returns ToNumber(x) % ToNumber(y) - * - * @path ch11/11.5/11.5.3/S11.5.3_A3_T2.2.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and String (primitive and object) - */ +/*--- +info: Operator x % y returns ToNumber(x) % ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and String (primitive and object) +---*/ //CHECK#1 if ("1" % 1 !== 0) { @@ -57,4 +57,3 @@ if (isNaN("x" % 1) !== true) { if (isNaN(1 % "x") !== true) { $ERROR('#10: 1 % "x" === Not-a-Number. Actual: ' + (1 % "x")); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.3.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.3.js index c6f32f2b4..bda621797 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.3.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.3.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. -/** - * Operator x % y returns ToNumber(x) % ToNumber(y) - * - * @path ch11/11.5/11.5.3/S11.5.3_A3_T2.3.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Null - */ +/*--- +info: Operator x % y returns ToNumber(x) % ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Null +---*/ //CHECK#1 if (isNaN(1 % null) !== true) { @@ -27,4 +27,3 @@ if (isNaN(new Number(1) % null) !== true) { if (null % new Number(1) !== 0) { $ERROR('#4: null % new Number(1) === 0. Actual: ' + (null % new Number(1))); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.4.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.4.js index 4abfc2c0f..ba8f1047a 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.4.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.4.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. -/** - * Operator x % y returns ToNumber(x) % ToNumber(y) - * - * @path ch11/11.5/11.5.3/S11.5.3_A3_T2.4.js - * @description Type(x) is different from Type(y) and both types vary between Number (primitive or object) and Undefined - */ +/*--- +info: Operator x % y returns ToNumber(x) % ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Number (primitive or object) and Undefined +---*/ //CHECK#1 if (isNaN(1 % undefined) !== true) { @@ -27,4 +27,3 @@ if (isNaN(new Number(1) % undefined) !== true) { if (isNaN(undefined % new Number(1)) !== true) { $ERROR('#4: undefined % new Number(1) === Not-a-Number. Actual: ' + (undefined % new Number(1))); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.5.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.5.js index 951f4c68c..c35daa6bf 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.5.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.5.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. -/** - * Operator x % y returns ToNumber(x) % ToNumber(y) - * - * @path ch11/11.5/11.5.3/S11.5.3_A3_T2.5.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Boolean (primitive and object) - */ +/*--- +info: Operator x % y returns ToNumber(x) % ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Boolean (primitive and object) +---*/ //CHECK#1 if (true % "1" !== 0) { @@ -47,4 +47,3 @@ if (new Boolean(true) % new String("1") !== 0) { if (new String("1") % new Boolean(true) !== 0) { $ERROR('#8: new String("1") % new Boolean(true) === 0. Actual: ' + (new String("1") % new Boolean(true))); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.6.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.6.js index 973fe5263..3748ced7d 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.6.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.6.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. -/** - * Operator x % y returns ToNumber(x) % ToNumber(y) - * - * @path ch11/11.5/11.5.3/S11.5.3_A3_T2.6.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Undefined - */ +/*--- +info: Operator x % y returns ToNumber(x) % ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Undefined +---*/ //CHECK#1 if (isNaN("1" % undefined) !== true) { @@ -27,4 +27,3 @@ if (isNaN(new String("1") % undefined) !== true) { if (isNaN(undefined % new String("1")) !== true) { $ERROR('#4: undefined % new String("1") === Not-a-Number. Actual: ' + (undefined % new String("1"))); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.7.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.7.js index baa8a90e4..09b58d148 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.7.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.7.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. -/** - * Operator x % y returns ToNumber(x) % ToNumber(y) - * - * @path ch11/11.5/11.5.3/S11.5.3_A3_T2.7.js - * @description Type(x) is different from Type(y) and both types vary between String (primitive or object) and Null - */ +/*--- +info: Operator x % y returns ToNumber(x) % ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + String (primitive or object) and Null +---*/ //CHECK#1 if (isNaN("1" % null) !== true) { @@ -27,4 +27,3 @@ if (isNaN(new String("1") % null) !== true) { if (null % new String("1") !== 0) { $ERROR('#4: null % new String("1") === 0. Actual: ' + (null % new String("1"))); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.8.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.8.js index 54e229b09..20f5c1572 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.8.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.8.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. -/** - * Operator x % y returns ToNumber(x) % ToNumber(y) - * - * @path ch11/11.5/11.5.3/S11.5.3_A3_T2.8.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Undefined - */ +/*--- +info: Operator x % y returns ToNumber(x) % ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Undefined +---*/ //CHECK#1 if (isNaN(true % undefined) !== true) { @@ -27,4 +27,3 @@ if (isNaN(new Boolean(true) % undefined) !== true) { if (isNaN(undefined % new Boolean(true)) !== true) { $ERROR('#4: undefined % new Boolean(true) === Not-a-Number. Actual: ' + (undefined % new Boolean(true))); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.9.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.9.js index 3ff69f285..b5c110fbb 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.9.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A3_T2.9.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. -/** - * Operator x % y returns ToNumber(x) % ToNumber(y) - * - * @path ch11/11.5/11.5.3/S11.5.3_A3_T2.9.js - * @description Type(x) is different from Type(y) and both types vary between Boolean (primitive or object) and Null - */ +/*--- +info: Operator x % y returns ToNumber(x) % ToNumber(y) +description: > + Type(x) is different from Type(y) and both types vary between + Boolean (primitive or object) and Null +---*/ //CHECK#1 if (isNaN(true % null) !== true) { @@ -27,4 +27,3 @@ if (isNaN(new Boolean(true) % null) !== true) { if (null % new Boolean(true) !== 0) { $ERROR('#4: null % new Boolean(true) === 0. Actual: ' + (null % new Boolean(true))); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T1.1.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T1.1.js index b2ad39088..fcc1182a2 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T1.1.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T1.1.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 result of a ECMAScript floating-point remainder operation is determined by the rules of IEEE arithmetics - * - * @path ch11/11.5/11.5.3/S11.5.3_A4_T1.1.js - * @description If either operand is NaN, the result is NaN - */ +/*--- +info: > + The result of a ECMAScript floating-point remainder operation is + determined by the rules of IEEE arithmetics +description: If either operand is NaN, the result is NaN +---*/ //CHECK#1 if (isNaN(Number.NaN % Number.NaN) !== true) { @@ -47,4 +47,3 @@ if (isNaN(Number.NaN % Number.MIN_VALUE) !== true) { if (isNaN(Number.NaN % 1) !== true) { $ERROR('#8: NaN % 1 === Not-a-Number. Actual: ' + (NaN % 1)); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T1.2.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T1.2.js index 2b7da808e..85fbd9176 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T1.2.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T1.2.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 result of a ECMAScript floating-point remainder operation is determined by the rules of IEEE arithmetics - * - * @path ch11/11.5/11.5.3/S11.5.3_A4_T1.2.js - * @description If either operand is NaN, the result is NaN - */ +/*--- +info: > + The result of a ECMAScript floating-point remainder operation is + determined by the rules of IEEE arithmetics +description: If either operand is NaN, the result is NaN +---*/ //CHECK#1 if (isNaN(Number.NaN % Number.NaN) !== true) { @@ -47,4 +47,3 @@ if (isNaN(Number.MIN_VALUE % Number.NaN) !== true) { if (isNaN(1 % Number.NaN) !== true) { $ERROR('#8: 1 % NaN === Not-a-Number. Actual: ' + (1 % NaN)); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T2.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T2.js index ce2051688..9e253fd5a 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T2.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T2.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. -/** - * The result of a ECMAScript floating-point remainder operation is determined by the rules of IEEE arithmetics - * - * @path ch11/11.5/11.5.3/S11.5.3_A4_T2.js - * @description The sign of the finite non-zero value result equals the sign of the divided - */ +/*--- +info: > + The result of a ECMAScript floating-point remainder operation is + determined by the rules of IEEE arithmetics +description: > + The sign of the finite non-zero value result equals the sign of + the divided +---*/ //CHECK#1 if (1 % 1 !== 0) { @@ -63,4 +65,3 @@ if (-101 % 51 !== -50) { if (-101 % -51 !== -50) { $ERROR('#8: -101 % -51 === -50. Actual: ' + (-101 % -51)); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T3.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T3.js index 5861cf727..749a64762 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T3.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T3.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 result of a ECMAScript floating-point remainder operation is determined by the rules of IEEE arithmetics - * - * @path ch11/11.5/11.5.3/S11.5.3_A4_T3.js - * @description If the dividend is an infinity results is NaN - */ +/*--- +info: > + The result of a ECMAScript floating-point remainder operation is + determined by the rules of IEEE arithmetics +description: If the dividend is an infinity results is NaN +---*/ //CHECK#1 if (isNaN(Number.NEGATIVE_INFINITY % Number.POSITIVE_INFINITY) !== true) { @@ -67,4 +67,3 @@ if (isNaN(Number.POSITIVE_INFINITY % Number.MAX_VALUE) !== true) { if (isNaN(Number.POSITIVE_INFINITY % -Number.MAX_VALUE) !== true) { $ERROR('#12: Infinity % -Number.MAX_VALUE === Not-a-Number. Actual: ' + (Infinity % -Number.MAX_VALUE)); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T4.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T4.js index cdf3ebd38..70ad1d583 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T4.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T4.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 result of a ECMAScript floating-point remainder operation is determined by the rules of IEEE arithmetics - * - * @path ch11/11.5/11.5.3/S11.5.3_A4_T4.js - * @description If the divisor is zero results is NaN - */ +/*--- +info: > + The result of a ECMAScript floating-point remainder operation is + determined by the rules of IEEE arithmetics +description: If the divisor is zero results is NaN +---*/ //CHECK#1 if (isNaN(-0 % 0) !== true) { @@ -87,4 +87,3 @@ if (isNaN(Number.MAX_VALUE % 0) !== true) { if (isNaN(Number.MAX_VALUE % -0) !== true) { $ERROR('#16: Number.MAX_VALUE % -0 === Not-a-Number. Actual: ' + (Number.MAX_VALUE % -0)); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T5.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T5.js index 46f9e75da..3b634718c 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T5.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T5.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. -/** - * The result of a ECMAScript floating-point remainder operation is determined by the rules of IEEE arithmetics - * - * @path ch11/11.5/11.5.3/S11.5.3_A4_T5.js - * @description If dividend is finite and the divisor is an infinity, the result equals the dividend - */ +/*--- +info: > + The result of a ECMAScript floating-point remainder operation is + determined by the rules of IEEE arithmetics +description: > + If dividend is finite and the divisor is an infinity, the result + equals the dividend +---*/ //CHECK#1 if (1 % Number.NEGATIVE_INFINITY !== 1) { @@ -101,4 +103,3 @@ if (-Number.MIN_VALUE % Number.POSITIVE_INFINITY !== -Number.MIN_VALUE) { if (-Number.MIN_VALUE % Number.NEGATIVE_INFINITY !== -Number.MIN_VALUE) { $ERROR('#16: -Number.MIN_VALUE % -Infinity === -Number.MIN_VALUE. Actual: ' + (-Number.MIN_VALUE % -Infinity)); } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T6.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T6.js index 02373aec7..1ba546a42 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T6.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T6.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. -/** - * The result of a ECMAScript floating-point remainder operation is determined by the rules of IEEE arithmetics - * - * @path ch11/11.5/11.5.3/S11.5.3_A4_T6.js - * @description If dividend is a zero and the divisor is nonzero finite, the result equals the dividend - */ +/*--- +info: > + The result of a ECMAScript floating-point remainder operation is + determined by the rules of IEEE arithmetics +description: > + If dividend is a zero and the divisor is nonzero finite, the + result equals the dividend +---*/ //CHECK#1 if (0 % 1 !== 0) { @@ -79,4 +81,3 @@ if (-0 % Number.MIN_VALUE !== -0) { $ERROR('#8.2: 0 % Number.MIN_VALUE === - 0. Actual: +0'); } } - diff --git a/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T7.js b/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T7.js index 54356536e..fd2ac24a6 100644 --- a/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T7.js +++ b/test/suite/ch11/11.5/11.5.3/S11.5.3_A4_T7.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. -/** - * The result of a ECMAScript floating-point remainder operation is determined by the rules of IEEE arithmetics - * - * @path ch11/11.5/11.5.3/S11.5.3_A4_T7.js - * @description If operands neither an infinity, nor a zero, nor NaN, return x - truncate(x / y) * y - */ +/*--- +info: > + The result of a ECMAScript floating-point remainder operation is + determined by the rules of IEEE arithmetics +description: > + If operands neither an infinity, nor a zero, nor NaN, return x - + truncate(x / y) * y +---*/ function truncate(x) { if (x > 0) { @@ -71,4 +73,3 @@ y = -1.1; if (x % y !== x - truncate(x / y) * y) { $ERROR('#8: x = -1.3; y = -1.1; x % y === x - truncate(x / y) * y. Actual: ' + (x % y)); } - |