diff options
Diffstat (limited to 'test/suite/ch11/11.5/11.5.1')
32 files changed, 186 insertions, 233 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)'); } - |