aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/ch09
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/ch09')
-rw-r--r--test/suite/ch09/9.1/S9.1_A1_T1.js16
-rw-r--r--test/suite/ch09/9.1/S9.1_A1_T2.js16
-rw-r--r--test/suite/ch09/9.1/S9.1_A1_T3.js16
-rw-r--r--test/suite/ch09/9.1/S9.1_A1_T4.js16
-rw-r--r--test/suite/ch09/9.2/S9.2_A1_T1.js13
-rw-r--r--test/suite/ch09/9.2/S9.2_A1_T2.js13
-rw-r--r--test/suite/ch09/9.2/S9.2_A2_T1.js11
-rw-r--r--test/suite/ch09/9.2/S9.2_A2_T2.js11
-rw-r--r--test/suite/ch09/9.2/S9.2_A3_T1.js11
-rw-r--r--test/suite/ch09/9.2/S9.2_A3_T2.js11
-rw-r--r--test/suite/ch09/9.2/S9.2_A4_T1.js13
-rw-r--r--test/suite/ch09/9.2/S9.2_A4_T2.js13
-rw-r--r--test/suite/ch09/9.2/S9.2_A4_T3.js19
-rw-r--r--test/suite/ch09/9.2/S9.2_A4_T4.js19
-rw-r--r--test/suite/ch09/9.2/S9.2_A5_T1.js13
-rw-r--r--test/suite/ch09/9.2/S9.2_A5_T2.js13
-rw-r--r--test/suite/ch09/9.2/S9.2_A5_T3.js13
-rw-r--r--test/suite/ch09/9.2/S9.2_A5_T4.js13
-rw-r--r--test/suite/ch09/9.2/S9.2_A6_T1.js11
-rw-r--r--test/suite/ch09/9.2/S9.2_A6_T2.js11
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A1.js11
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A10.js16
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A11.js19
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A12.js17
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A13.js14
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A14.js11
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A15.js13
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A16.js11
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A17.js11
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A18.js11
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A19.js11
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A2.js13
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A20.js11
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A21.js11
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A22.js11
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A23.js11
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A24.js11
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A25.js11
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A26.js13
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A27.js13
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A28.js13
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A29.js13
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A30.js13
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A31.js13
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A32.js18
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A3_T1.js14
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A3_T2.js14
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A4_T1.js13
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A4_T2.js13
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A5_T1.js14
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A5_T2.js14
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A5_T3.js14
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A6_T1.js16
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A6_T2.js16
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A7.js16
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A8.js16
-rw-r--r--test/suite/ch09/9.3/9.3.1/S9.3.1_A9.js22
-rw-r--r--test/suite/ch09/9.3/S9.3_A1_T1.js11
-rw-r--r--test/suite/ch09/9.3/S9.3_A1_T2.js11
-rw-r--r--test/suite/ch09/9.3/S9.3_A2_T1.js11
-rw-r--r--test/suite/ch09/9.3/S9.3_A2_T2.js11
-rw-r--r--test/suite/ch09/9.3/S9.3_A3_T1.js13
-rw-r--r--test/suite/ch09/9.3/S9.3_A3_T2.js13
-rw-r--r--test/suite/ch09/9.3/S9.3_A4.1_T1.js17
-rw-r--r--test/suite/ch09/9.3/S9.3_A4.1_T2.js17
-rw-r--r--test/suite/ch09/9.3/S9.3_A4.2_T1.js17
-rw-r--r--test/suite/ch09/9.3/S9.3_A4.2_T2.js17
-rw-r--r--test/suite/ch09/9.3/S9.3_A5_T1.js18
-rw-r--r--test/suite/ch09/9.3/S9.3_A5_T2.js18
-rw-r--r--test/suite/ch09/9.4/S9.4_A1.js13
-rw-r--r--test/suite/ch09/9.4/S9.4_A2.js16
-rw-r--r--test/suite/ch09/9.4/S9.4_A3_T1.js14
-rw-r--r--test/suite/ch09/9.4/S9.4_A3_T2.js16
-rw-r--r--test/suite/ch09/9.5/S9.5_A1_T1.js11
-rw-r--r--test/suite/ch09/9.5/S9.5_A2.1_T1.js13
-rw-r--r--test/suite/ch09/9.5/S9.5_A2.1_T2.js13
-rw-r--r--test/suite/ch09/9.5/S9.5_A2.2_T1.js11
-rw-r--r--test/suite/ch09/9.5/S9.5_A2.2_T2.js11
-rw-r--r--test/suite/ch09/9.5/S9.5_A2.3_T1.js13
-rw-r--r--test/suite/ch09/9.5/S9.5_A2.3_T2.js11
-rw-r--r--test/suite/ch09/9.5/S9.5_A3.1_T1.js11
-rw-r--r--test/suite/ch09/9.5/S9.5_A3.1_T2.js11
-rw-r--r--test/suite/ch09/9.5/S9.5_A3.1_T3.js11
-rw-r--r--test/suite/ch09/9.5/S9.5_A3.1_T4.js11
-rw-r--r--test/suite/ch09/9.5/S9.5_A3.2_T1.js11
-rw-r--r--test/suite/ch09/9.5/S9.5_A3.2_T2.js11
-rw-r--r--test/suite/ch09/9.6/S9.6_A1.js13
-rw-r--r--test/suite/ch09/9.6/S9.6_A2.1.js13
-rw-r--r--test/suite/ch09/9.6/S9.6_A2.2.js11
-rw-r--r--test/suite/ch09/9.6/S9.6_A3.1_T1.js11
-rw-r--r--test/suite/ch09/9.6/S9.6_A3.1_T2.js11
-rw-r--r--test/suite/ch09/9.6/S9.6_A3.1_T3.js11
-rw-r--r--test/suite/ch09/9.6/S9.6_A3.1_T4.js11
-rw-r--r--test/suite/ch09/9.6/S9.6_A3.2_T1.js11
-rw-r--r--test/suite/ch09/9.7/S9.7_A1.js15
-rw-r--r--test/suite/ch09/9.7/S9.7_A2.1.js13
-rw-r--r--test/suite/ch09/9.7/S9.7_A2.2.js13
-rw-r--r--test/suite/ch09/9.7/S9.7_A3.1_T1.js11
-rw-r--r--test/suite/ch09/9.7/S9.7_A3.1_T2.js11
-rw-r--r--test/suite/ch09/9.7/S9.7_A3.1_T3.js11
-rw-r--r--test/suite/ch09/9.7/S9.7_A3.1_T4.js11
-rw-r--r--test/suite/ch09/9.7/S9.7_A3.2_T1.js13
-rw-r--r--test/suite/ch09/9.8/9.8.1/S9.8.1_A1.js11
-rw-r--r--test/suite/ch09/9.8/9.8.1/S9.8.1_A10.js22
-rw-r--r--test/suite/ch09/9.8/9.8.1/S9.8.1_A2.js11
-rw-r--r--test/suite/ch09/9.8/9.8.1/S9.8.1_A3.js14
-rw-r--r--test/suite/ch09/9.8/9.8.1/S9.8.1_A4.js11
-rw-r--r--test/suite/ch09/9.8/9.8.1/S9.8.1_A6.js19
-rw-r--r--test/suite/ch09/9.8/9.8.1/S9.8.1_A7.js20
-rw-r--r--test/suite/ch09/9.8/9.8.1/S9.8.1_A8.js19
-rw-r--r--test/suite/ch09/9.8/9.8.1/S9.8.1_A9_T1.js18
-rw-r--r--test/suite/ch09/9.8/9.8.1/S9.8.1_A9_T2.js20
-rw-r--r--test/suite/ch09/9.8/S9.8_A1_T1.js13
-rw-r--r--test/suite/ch09/9.8/S9.8_A1_T2.js13
-rw-r--r--test/suite/ch09/9.8/S9.8_A2_T1.js13
-rw-r--r--test/suite/ch09/9.8/S9.8_A2_T2.js13
-rw-r--r--test/suite/ch09/9.8/S9.8_A3_T1.js14
-rw-r--r--test/suite/ch09/9.8/S9.8_A3_T2.js14
-rw-r--r--test/suite/ch09/9.8/S9.8_A4_T1.js13
-rw-r--r--test/suite/ch09/9.8/S9.8_A4_T2.js13
-rw-r--r--test/suite/ch09/9.8/S9.8_A5_T1.js14
-rw-r--r--test/suite/ch09/9.8/S9.8_A5_T2.js14
-rw-r--r--test/suite/ch09/9.9/S9.9_A1.js13
-rw-r--r--test/suite/ch09/9.9/S9.9_A2.js13
-rw-r--r--test/suite/ch09/9.9/S9.9_A3.js14
-rw-r--r--test/suite/ch09/9.9/S9.9_A4.js14
-rw-r--r--test/suite/ch09/9.9/S9.9_A5.js14
-rw-r--r--test/suite/ch09/9.9/S9.9_A6.js14
128 files changed, 749 insertions, 978 deletions
diff --git a/test/suite/ch09/9.1/S9.1_A1_T1.js b/test/suite/ch09/9.1/S9.1_A1_T1.js
index 662591054..2965d91ef 100644
--- a/test/suite/ch09/9.1/S9.1_A1_T1.js
+++ b/test/suite/ch09/9.1/S9.1_A1_T1.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.
-/**
- * Result of primitive conversion from object is a default value for the Object
- *
- * @path ch09/9.1/S9.1_A1_T1.js
- * @description Using operator Number. The operator calls ToPrimitive with hint Number
- */
+/*---
+info: >
+ Result of primitive conversion from object is a default value for the
+ Object
+description: >
+ Using operator Number. The operator calls ToPrimitive with hint
+ Number
+---*/
// CHECK#1
var object = {valueOf: function() {return "1"}, toString: function() {return 0}};
@@ -19,5 +21,3 @@ var object = {valueOf: function() {return {}}, toString: function() {return "0"}
if (Number(object) !== 0) {
$ERROR('#2: var object = {valueOf: function() {return {}}, toString: function() {return "0"}}; Number(object) === 0. Actual: ' + (Number(object)));
}
-
-
diff --git a/test/suite/ch09/9.1/S9.1_A1_T2.js b/test/suite/ch09/9.1/S9.1_A1_T2.js
index 636591dab..f0951f79d 100644
--- a/test/suite/ch09/9.1/S9.1_A1_T2.js
+++ b/test/suite/ch09/9.1/S9.1_A1_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.
-/**
- * Result of primitive conversion from object is a default value for the Object
- *
- * @path ch09/9.1/S9.1_A1_T2.js
- * @description Using operator Number. This operator calls ToPrimitive with hint Number
- */
+/*---
+info: >
+ Result of primitive conversion from object is a default value for the
+ Object
+description: >
+ Using operator Number. This operator calls ToPrimitive with hint
+ Number
+---*/
// CHECK#1
var object = {valueOf: function() {return 0}, toString: function() {return 1}};
@@ -19,5 +21,3 @@ var object = {valueOf: function() {return 0}, toString: function() {return {}}};
if (String(object) !== "0") {
$ERROR('#2: var object = {valueOf: function() {return 0}, toString: function() {return {}}}; String(object) === "0". Actual: ' + (String(object)));
}
-
-
diff --git a/test/suite/ch09/9.1/S9.1_A1_T3.js b/test/suite/ch09/9.1/S9.1_A1_T3.js
index cf418eeef..c5ff0581b 100644
--- a/test/suite/ch09/9.1/S9.1_A1_T3.js
+++ b/test/suite/ch09/9.1/S9.1_A1_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.
-/**
- * Result of primitive conversion from object is a default value for the Object
- *
- * @path ch09/9.1/S9.1_A1_T3.js
- * @description Using operator "+". This operator firstly calls ToPrimitive and then calls ToString or ToNumber
- */
+/*---
+info: >
+ Result of primitive conversion from object is a default value for the
+ Object
+description: >
+ Using operator "+". This operator firstly calls ToPrimitive and
+ then calls ToString or ToNumber
+---*/
// CHECK#1
var object = {valueOf: function() {return 1}, toString: function() {return 0}};
@@ -19,5 +21,3 @@ var object = {valueOf: function() {return "1"}, toString: function() {return 0}}
if (object + 0 !== "10") {
$ERROR('#2: var object = {valueOf: function() {return "1"}, toString: function() {return 0}}; object + 0 === "10". Actual: ' + (object + 0));
}
-
-
diff --git a/test/suite/ch09/9.1/S9.1_A1_T4.js b/test/suite/ch09/9.1/S9.1_A1_T4.js
index 9dcd88f50..dedb26b32 100644
--- a/test/suite/ch09/9.1/S9.1_A1_T4.js
+++ b/test/suite/ch09/9.1/S9.1_A1_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.
-/**
- * Result of primitive conversion from object is a default value for the Object
- *
- * @path ch09/9.1/S9.1_A1_T4.js
- * @description Using operator "<". The operator firstly calls ToPrimitive and then calls ToString or ToNumber
- */
+/*---
+info: >
+ Result of primitive conversion from object is a default value for the
+ Object
+description: >
+ Using operator "<". The operator firstly calls ToPrimitive and
+ then calls ToString or ToNumber
+---*/
// CHECK#1
var object = {valueOf: function() {return -2}, toString: function() {return "-2"}};
@@ -19,5 +21,3 @@ var object = {valueOf: function() {return "-2"}, toString: function() {return -2
if (object < "-1") {
$ERROR('#2: var object = {valueOf: function() {return "-2"}, toString: function() {return -2}}; object < "-1"');
}
-
-
diff --git a/test/suite/ch09/9.2/S9.2_A1_T1.js b/test/suite/ch09/9.2/S9.2_A1_T1.js
index 44bbaae6a..3f3ca80e9 100644
--- a/test/suite/ch09/9.2/S9.2_A1_T1.js
+++ b/test/suite/ch09/9.2/S9.2_A1_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.
-/**
- * Result of boolean conversion from undefined value is false
- *
- * @path ch09/9.2/S9.2_A1_T1.js
- * @description Undefined, void and others are converted to Boolean by explicit transformation
- */
+/*---
+info: Result of boolean conversion from undefined value is false
+description: >
+ Undefined, void and others are converted to Boolean by explicit
+ transformation
+---*/
// CHECK#1
if (Boolean(undefined) !== false) {
@@ -27,4 +27,3 @@ if (Boolean(eval("var x")) !== false) {
if (Boolean() !== false) {
$ERROR('#4: Boolean() === false. Actual: ' + (Boolean()));
}
-
diff --git a/test/suite/ch09/9.2/S9.2_A1_T2.js b/test/suite/ch09/9.2/S9.2_A1_T2.js
index 0700b8da6..b407a9004 100644
--- a/test/suite/ch09/9.2/S9.2_A1_T2.js
+++ b/test/suite/ch09/9.2/S9.2_A1_T2.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.
-/**
- * Result of boolean conversion from undefined value is false
- *
- * @path ch09/9.2/S9.2_A1_T2.js
- * @description Undefined, void and others are converted to Boolean by implicit transformation
- */
+/*---
+info: Result of boolean conversion from undefined value is false
+description: >
+ Undefined, void and others are converted to Boolean by implicit
+ transformation
+---*/
// CHECK#1
if (!(undefined) !== true) {
@@ -22,4 +22,3 @@ if (!(void 0) !== true) {
if (!(eval("var x")) !== true) {
$ERROR('#3: !(eval("var x")) === true. Actual: ' + (!(eval("var x"))));
}
-
diff --git a/test/suite/ch09/9.2/S9.2_A2_T1.js b/test/suite/ch09/9.2/S9.2_A2_T1.js
index c53da91bf..4c46bd6f1 100644
--- a/test/suite/ch09/9.2/S9.2_A2_T1.js
+++ b/test/suite/ch09/9.2/S9.2_A2_T1.js
@@ -1,15 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Result of boolean conversion from null value is false
- *
- * @path ch09/9.2/S9.2_A2_T1.js
- * @description null convert to Boolean by explicit transformation
- */
+/*---
+info: Result of boolean conversion from null value is false
+description: null convert to Boolean by explicit transformation
+---*/
// CHECK#1
if (Boolean(null) !== false) {
$ERROR('#1: Boolean(null) === false. Actual: ' + (Boolean(null)));
}
-
diff --git a/test/suite/ch09/9.2/S9.2_A2_T2.js b/test/suite/ch09/9.2/S9.2_A2_T2.js
index ffd391b90..3ea5a92e6 100644
--- a/test/suite/ch09/9.2/S9.2_A2_T2.js
+++ b/test/suite/ch09/9.2/S9.2_A2_T2.js
@@ -1,15 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Result of boolean conversion from null value is false
- *
- * @path ch09/9.2/S9.2_A2_T2.js
- * @description null convert to Boolean by implicit transformation
- */
+/*---
+info: Result of boolean conversion from null value is false
+description: null convert to Boolean by implicit transformation
+---*/
// CHECK#1
if (!(null) !== true) {
$ERROR('#1: !(null) === true. Actual: ' + (!(null)));
}
-
diff --git a/test/suite/ch09/9.2/S9.2_A3_T1.js b/test/suite/ch09/9.2/S9.2_A3_T1.js
index 103f4eab3..696c7fe32 100644
--- a/test/suite/ch09/9.2/S9.2_A3_T1.js
+++ b/test/suite/ch09/9.2/S9.2_A3_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.
-/**
- * Result of boolean conversion from boolean value is no conversion
- *
- * @path ch09/9.2/S9.2_A3_T1.js
- * @description true and false convert to Boolean by explicit transformation
- */
+/*---
+info: Result of boolean conversion from boolean value is no conversion
+description: true and false convert to Boolean by explicit transformation
+---*/
// CHECK#1
if (Boolean(true) !== true) {
@@ -17,4 +15,3 @@ if (Boolean(true) !== true) {
if (Boolean(false) !== false) {
$ERROR('#2: Boolean(false) === false. Actual: ' + (Boolean(false)));
}
-
diff --git a/test/suite/ch09/9.2/S9.2_A3_T2.js b/test/suite/ch09/9.2/S9.2_A3_T2.js
index d1ede1c6d..6342e3115 100644
--- a/test/suite/ch09/9.2/S9.2_A3_T2.js
+++ b/test/suite/ch09/9.2/S9.2_A3_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.
-/**
- * Result of boolean conversion from boolean value is no conversion
- *
- * @path ch09/9.2/S9.2_A3_T2.js
- * @description true and false convert to Boolean by implicit transformation
- */
+/*---
+info: Result of boolean conversion from boolean value is no conversion
+description: true and false convert to Boolean by implicit transformation
+---*/
// CHECK#1
if (!(true) !== false) {
@@ -17,4 +15,3 @@ if (!(true) !== false) {
if (!(false) !== true) {
$ERROR('#2: !(false) === true. Actual: ' + (!(false)));
}
-
diff --git a/test/suite/ch09/9.2/S9.2_A4_T1.js b/test/suite/ch09/9.2/S9.2_A4_T1.js
index 71860cac8..a0e1f4a1a 100644
--- a/test/suite/ch09/9.2/S9.2_A4_T1.js
+++ b/test/suite/ch09/9.2/S9.2_A4_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.
-/**
- * Result of boolean conversion from number value is false if the argument is +0, -0, or NaN; otherwise, is true
- *
- * @path ch09/9.2/S9.2_A4_T1.js
- * @description +0, -0 and NaN convert to Boolean by explicit transformation
- */
+/*---
+info: >
+ Result of boolean conversion from number value is false if the argument
+ is +0, -0, or NaN; otherwise, is true
+description: +0, -0 and NaN convert to Boolean by explicit transformation
+---*/
// CHECK#1
if (Boolean(+0) !== false) {
@@ -22,4 +22,3 @@ if (Boolean(-0) !== false) {
if (Boolean(Number.NaN) !== false) {
$ERROR('#3: Boolean(Number.NaN) === false. Actual: ' + (Boolean(Number.NaN)));
}
-
diff --git a/test/suite/ch09/9.2/S9.2_A4_T2.js b/test/suite/ch09/9.2/S9.2_A4_T2.js
index 66047bea5..6979819c1 100644
--- a/test/suite/ch09/9.2/S9.2_A4_T2.js
+++ b/test/suite/ch09/9.2/S9.2_A4_T2.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.
-/**
- * Result of boolean conversion from number value is false if the argument is +0, -0, or NaN; otherwise, is true
- *
- * @path ch09/9.2/S9.2_A4_T2.js
- * @description +0, -0 and NaN convert to Boolean by implicit transformation
- */
+/*---
+info: >
+ Result of boolean conversion from number value is false if the argument
+ is +0, -0, or NaN; otherwise, is true
+description: +0, -0 and NaN convert to Boolean by implicit transformation
+---*/
// CHECK#1
if (!(+0) !== true) {
@@ -22,4 +22,3 @@ if (!(-0) !== true) {
if (!(Number.NaN) !== true) {
$ERROR('#3: !(Number.NaN) === true. Actual: ' + (!(Number.NaN)));
}
-
diff --git a/test/suite/ch09/9.2/S9.2_A4_T3.js b/test/suite/ch09/9.2/S9.2_A4_T3.js
index 9a16966d6..9ccb678c1 100644
--- a/test/suite/ch09/9.2/S9.2_A4_T3.js
+++ b/test/suite/ch09/9.2/S9.2_A4_T3.js
@@ -1,13 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Result of boolean conversion from number value is false if the argument is +0, -0, or NaN; otherwise, is true
- *
- * @path ch09/9.2/S9.2_A4_T3.js
- * @description Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY,
- * Number.MAX_VALUE, Number.MIN_VALUE and some numbers convert to Boolean by explicit transformation
- */
+/*---
+info: >
+ Result of boolean conversion from number value is false if the argument
+ is +0, -0, or NaN; otherwise, is true
+description: >
+ Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY,
+ Number.MAX_VALUE, Number.MIN_VALUE and some numbers convert to
+ Boolean by explicit transformation
+---*/
// CHECK#1
if (Boolean(Number.POSITIVE_INFINITY) !== true) {
@@ -47,5 +49,4 @@ if (Boolean(1.3) !== true) {
// CHECK#8
if (Boolean(-1.3) !== true) {
$ERROR('#8: Boolean(-1.3) === true. Actual: ' + (Boolean(-1.3)));
-}
-
+}
diff --git a/test/suite/ch09/9.2/S9.2_A4_T4.js b/test/suite/ch09/9.2/S9.2_A4_T4.js
index 692ab77bf..dd4af6256 100644
--- a/test/suite/ch09/9.2/S9.2_A4_T4.js
+++ b/test/suite/ch09/9.2/S9.2_A4_T4.js
@@ -1,13 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Result of boolean conversion from number value is false if the argument is +0, -0, or NaN; otherwise, is true
- *
- * @path ch09/9.2/S9.2_A4_T4.js
- * @description Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY,
- * Number.MAX_VALUE, Number.MIN_VALUE and some other numbers are converted to Boolean by implicit transformation
- */
+/*---
+info: >
+ Result of boolean conversion from number value is false if the argument
+ is +0, -0, or NaN; otherwise, is true
+description: >
+ Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY,
+ Number.MAX_VALUE, Number.MIN_VALUE and some other numbers are
+ converted to Boolean by implicit transformation
+---*/
// CHECK#1
if (!(Number.POSITIVE_INFINITY) !== false) {
@@ -47,5 +49,4 @@ if (!(1.3) !== false) {
// CHECK#8
if (!(-1.3) !== false) {
$ERROR('#8: !(-1.3) === false. Actual: ' + (!(-1.3)));
-}
-
+}
diff --git a/test/suite/ch09/9.2/S9.2_A5_T1.js b/test/suite/ch09/9.2/S9.2_A5_T1.js
index 293ee2375..6c998df45 100644
--- a/test/suite/ch09/9.2/S9.2_A5_T1.js
+++ b/test/suite/ch09/9.2/S9.2_A5_T1.js
@@ -1,15 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Result of boolean conversion from nonempty string value (length is not zero) is true; from empty String (length is zero) is false
- *
- * @path ch09/9.2/S9.2_A5_T1.js
- * @description "" is converted to Boolean by explicit transformation
- */
+/*---
+info: >
+ Result of boolean conversion from nonempty string value (length is not
+ zero) is true; from empty String (length is zero) is false
+description: "\"\" is converted to Boolean by explicit transformation"
+---*/
// CHECK#1
if (Boolean("") !== false) {
$ERROR('#1: Boolean("") === false. Actual: ' + (Boolean("")));
}
-
diff --git a/test/suite/ch09/9.2/S9.2_A5_T2.js b/test/suite/ch09/9.2/S9.2_A5_T2.js
index de391a329..7700f7646 100644
--- a/test/suite/ch09/9.2/S9.2_A5_T2.js
+++ b/test/suite/ch09/9.2/S9.2_A5_T2.js
@@ -1,15 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Result of boolean conversion from nonempty string value (length is not zero) is true; from empty String (length is zero) is false
- *
- * @path ch09/9.2/S9.2_A5_T2.js
- * @description "" convert to Boolean by implicit transformation
- */
+/*---
+info: >
+ Result of boolean conversion from nonempty string value (length is not
+ zero) is true; from empty String (length is zero) is false
+description: "\"\" convert to Boolean by implicit transformation"
+---*/
// CHECK#1
if (!("") !== true) {
$ERROR('#1: !("") === true. Actual: ' + (!("")));
}
-
diff --git a/test/suite/ch09/9.2/S9.2_A5_T3.js b/test/suite/ch09/9.2/S9.2_A5_T3.js
index f8f185c59..41ae46707 100644
--- a/test/suite/ch09/9.2/S9.2_A5_T3.js
+++ b/test/suite/ch09/9.2/S9.2_A5_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.
-/**
- * Result of boolean conversion from nonempty string value (length is not zero) is true; from empty String (length is zero) is false
- *
- * @path ch09/9.2/S9.2_A5_T3.js
- * @description Any nonempty string convert to Boolean by explicit transformation
- */
+/*---
+info: >
+ Result of boolean conversion from nonempty string value (length is not
+ zero) is true; from empty String (length is zero) is false
+description: Any nonempty string convert to Boolean by explicit transformation
+---*/
// CHECK#1
if (Boolean(" ") !== true) {
@@ -17,4 +17,3 @@ if (Boolean(" ") !== true) {
if (Boolean("Nonempty String") !== true) {
$ERROR('#2: Boolean("Nonempty String") === true. Actual: ' + (Boolean("Nonempty String")));
}
-
diff --git a/test/suite/ch09/9.2/S9.2_A5_T4.js b/test/suite/ch09/9.2/S9.2_A5_T4.js
index c8ea44e9d..d0139e9df 100644
--- a/test/suite/ch09/9.2/S9.2_A5_T4.js
+++ b/test/suite/ch09/9.2/S9.2_A5_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.
-/**
- * Result of boolean conversion from nonempty string value (length is not zero) is true; from empty String (length is zero) is false
- *
- * @path ch09/9.2/S9.2_A5_T4.js
- * @description Any nonempty string convert to Boolean by implicit transformation
- */
+/*---
+info: >
+ Result of boolean conversion from nonempty string value (length is not
+ zero) is true; from empty String (length is zero) is false
+description: Any nonempty string convert to Boolean by implicit transformation
+---*/
// CHECK#1
if (!(" ") !== false) {
@@ -17,4 +17,3 @@ if (!(" ") !== false) {
if (!("Nonempty String") !== false) {
$ERROR('#2: !("Nonempty String") === false. Actual: ' + (!("Nonempty String")));
}
-
diff --git a/test/suite/ch09/9.2/S9.2_A6_T1.js b/test/suite/ch09/9.2/S9.2_A6_T1.js
index 72bb34e26..65ebc1d62 100644
--- a/test/suite/ch09/9.2/S9.2_A6_T1.js
+++ b/test/suite/ch09/9.2/S9.2_A6_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.
-/**
- * Result of boolean conversion from object is true
- *
- * @path ch09/9.2/S9.2_A6_T1.js
- * @description Different objects convert to Boolean by explicit transformation
- */
+/*---
+info: Result of boolean conversion from object is true
+description: Different objects convert to Boolean by explicit transformation
+---*/
// CHECK#1
if (Boolean(new Object()) !== true) {
@@ -102,4 +100,3 @@ if (Boolean(new Date()) !== true) {
if (Boolean(new Date(0)) !== true) {
$ERROR('#19: Boolean(new Date(0)) === true. Actual: ' + (Boolean(new Date(0))));
}
-
diff --git a/test/suite/ch09/9.2/S9.2_A6_T2.js b/test/suite/ch09/9.2/S9.2_A6_T2.js
index 54dbbb6f3..4d62b4094 100644
--- a/test/suite/ch09/9.2/S9.2_A6_T2.js
+++ b/test/suite/ch09/9.2/S9.2_A6_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.
-/**
- * Result of boolean conversion from object is true
- *
- * @path ch09/9.2/S9.2_A6_T2.js
- * @description Different objects convert to Boolean by implicit transformation
- */
+/*---
+info: Result of boolean conversion from object is true
+description: Different objects convert to Boolean by implicit transformation
+---*/
// CHECK#1
if (!(new Object()) !== false) {
@@ -102,4 +100,3 @@ if (!(new Date()) !== false) {
if (!(new Date(0)) !== false) {
$ERROR('#19: !(new Date(0)) === false. Actual: ' + (!(new Date(0))));
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A1.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A1.js
index 35b235fa3..cc5a7644f 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A1.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A1.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The MV of StringNumericLiteral ::: [empty] is 0
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A1.js
- * @description Number('') convert to Number by explicit transformation
- */
+/*---
+info: "The MV of StringNumericLiteral ::: [empty] is 0"
+description: Number('') convert to Number by explicit transformation
+---*/
// CHECK#1
if (Number("") !== 0) {
@@ -16,4 +14,3 @@ if (Number("") !== 0) {
$ERROR('#1.2: Number("") == +0. Actual: -0');
}
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A10.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A10.js
index 1f7d3f958..f9652d4f1 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A10.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A10.js
@@ -1,17 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The MV of StrUnsignedDecimalLiteral:::. DecimalDigits is the
- * MV of DecimalDigits times 10<sup><small>-n</small></sup>, where n is the
- * number of characters in DecimalDigits
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A10.js
- * @description Compare Number('.12345') with +('12345')*1e-5
- */
+/*---
+info: >
+ The MV of StrUnsignedDecimalLiteral:::. DecimalDigits is the
+ MV of DecimalDigits times 10<sup><small>-n</small></sup>, where n is the
+ number of characters in DecimalDigits
+description: Compare Number('.12345') with +('12345')*1e-5
+---*/
// CHECK#1
if (Number(".12345") !== +("12345")*1e-5) {
$ERROR('#1: Number(".12345") === +("12345")*1e-5');
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A11.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A11.js
index 9f58e16f2..b087f180b 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A11.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A11.js
@@ -1,15 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The MV of StrUnsignedDecimalLiteral:::. DecimalDigits ExponentPart
- * is the MV of DecimalDigits times 10<sup><small>e-n</small></sup>, where n is
- * the number of characters in DecimalDigits and e is the MV of ExponentPart
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A11.js
- * @description Compare Number('.12345e6') with +('12345')*1e1,
- * and Number('.12345e-3') !== Number('12345')*1e-8
- */
+/*---
+info: >
+ The MV of StrUnsignedDecimalLiteral:::. DecimalDigits ExponentPart
+ is the MV of DecimalDigits times 10<sup><small>e-n</small></sup>, where n is
+ the number of characters in DecimalDigits and e is the MV of ExponentPart
+description: >
+ Compare Number('.12345e6') with +('12345')*1e1, and
+ Number('.12345e-3') !== Number('12345')*1e-8
+---*/
// CHECK#1
if (Number(".12345e6") !== +("12345")*1e1) {
@@ -20,4 +20,3 @@ if (Number(".12345e6") !== +("12345")*1e1) {
if (Number(".12345e-3") !== Number("12345")*1e-8) {
$ERROR('#2: Number(".12345e-3") === Number("12345")*1e-8');
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A12.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A12.js
index 201040946..cf642f4dd 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A12.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A12.js
@@ -1,14 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The MV of StrUnsignedDecimalLiteral::: DecimalDigits ExponentPart
- * is the MV of DecimalDigits times 10<sup><small>e</small></sup>, where e is the MV of ExponentPart
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A12.js
- * @description Compare Number('12345e6') with +('12345')*1e1,
- * and Number('12345e-6') !== Number('12345')*1e-6
- */
+/*---
+info: >
+ The MV of StrUnsignedDecimalLiteral::: DecimalDigits ExponentPart
+ is the MV of DecimalDigits times 10<sup><small>e</small></sup>, where e is the MV of ExponentPart
+description: >
+ Compare Number('12345e6') with +('12345')*1e1, and
+ Number('12345e-6') !== Number('12345')*1e-6
+---*/
// CHECK#1
if (Number("12345e6") !== +("12345")*1e6) {
@@ -19,4 +19,3 @@ if (Number("12345e6") !== +("12345")*1e6) {
if (Number("12345e-6") !== Number("12345")*1e-6) {
$ERROR('#2: Number("12345e-6") === Number("12345")*1e-6');
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A13.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A13.js
index 8d51f4b02..0ce6a4aca 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A13.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A13.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The MV of DecimalDigits ::: DecimalDigits DecimalDigit is
- * (the MV of DecimalDigits times 10) plus the MV of DecimalDigit
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A13.js
- * @description Compare '12' with Number("1")*10+Number("2") and analogous
- */
+/*---
+info: >
+ The MV of DecimalDigits ::: DecimalDigits DecimalDigit is
+ (the MV of DecimalDigits times 10) plus the MV of DecimalDigit
+description: Compare '12' with Number("1")*10+Number("2") and analogous
+---*/
// CHECK#1
if (+("12") !== Number("1")*10+Number("2")) {
@@ -23,4 +22,3 @@ if (Number("123") !== Number("12")*10+Number("3")) {
if (Number("1234") !== Number("123")*10+Number("4")) {
$ERROR('#2: Number("1234") === Number("123")*10+Number("4")');
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A14.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A14.js
index 4ed80b082..96de392c6 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A14.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A14.js
@@ -1,15 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The MV of SignedInteger ::: + DecimalDigits is the MV of DecimalDigits
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A14.js
- * @description Compare Number('+1234567890') with +('1234567890')
- */
+/*---
+info: "The MV of SignedInteger ::: + DecimalDigits is the MV of DecimalDigits"
+description: Compare Number('+1234567890') with +('1234567890')
+---*/
// CHECK#1
if (Number("+1234567890") !== +("1234567890")) {
$ERROR('#1: Number("+1234567890") === +("1234567890")');
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A15.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A15.js
index d0ba80b6e..2d69b10ce 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A15.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A15.js
@@ -1,15 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The MV of SignedInteger ::: - DecimalDigits is the negative of the MV of DecimalDigits
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A15.js
- * @description Compare -Number('1234567890') with ('-1234567890')
- */
+/*---
+info: >
+ The MV of SignedInteger ::: - DecimalDigits is the negative of the MV of
+ DecimalDigits
+description: Compare -Number('1234567890') with ('-1234567890')
+---*/
// CHECK#1
if (+("-1234567890") !== -Number("1234567890")) {
$ERROR('#1: +("-1234567890") === -Number("1234567890")');
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A16.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A16.js
index 6163fbb4a..6ca56acaf 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A16.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A16.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The MV of DecimalDigit ::: 0 or of HexDigit ::: 0 is 0
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A16.js
- * @description Compare Number('0x0') and Number('0X0') with 0
- */
+/*---
+info: "The MV of DecimalDigit ::: 0 or of HexDigit ::: 0 is 0"
+description: Compare Number('0x0') and Number('0X0') with 0
+---*/
// CHECK#1
if (Number("0") !== 0) {
@@ -22,4 +20,3 @@ if (+("0x0") !== 0) {
if (Number("0X0") !== 0) {
$ERROR('#3: Number("0X0") === 0. Actual: ' + (Number("0X0")));
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A17.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A17.js
index d4b72bbf5..e97e056f6 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A17.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A17.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The MV of DecimalDigit ::: 1 or of HexDigit ::: 1 is 1
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A17.js
- * @description Compare Number('0x1') and Number('0X1') with 1
- */
+/*---
+info: "The MV of DecimalDigit ::: 1 or of HexDigit ::: 1 is 1"
+description: Compare Number('0x1') and Number('0X1') with 1
+---*/
// CHECK#1
if (Number("1") !== 1) {
@@ -22,4 +20,3 @@ if (Number("0x1") !== 1) {
if (+("0X1") !== 1) {
$ERROR('#3: +("0X1") === 1. Actual: ' + (+("0X1")));
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A18.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A18.js
index b4375494c..b84445b7b 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A18.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A18.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The MV of DecimalDigit ::: 2 or of HexDigit ::: 2 is 2
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A18.js
- * @description Compare Number('0x2') and Number('0X2') with 2
- */
+/*---
+info: "The MV of DecimalDigit ::: 2 or of HexDigit ::: 2 is 2"
+description: Compare Number('0x2') and Number('0X2') with 2
+---*/
// CHECK#1
if (+("2") !== 2) {
@@ -22,4 +20,3 @@ if (Number("0x2") !== 2) {
if (Number("0X2") !== 2) {
$ERROR('#3: Number("0X2") === 2. Actual: ' + (Number("0X2")));
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A19.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A19.js
index 0abc0200a..fe7f31015 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A19.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A19.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The MV of DecimalDigit ::: 3 or of HexDigit ::: 3 is 3
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A19.js
- * @description Compare Number('0x3') and Number('0X3') with 3
- */
+/*---
+info: "The MV of DecimalDigit ::: 3 or of HexDigit ::: 3 is 3"
+description: Compare Number('0x3') and Number('0X3') with 3
+---*/
// CHECK#1
if (Number("3") !== 3) {
@@ -22,4 +20,3 @@ if (+("0x3") !== 3) {
if (Number("0X3") !== 3) {
$ERROR('#3: Number("0X3") === 3. Actual: ' + (Number("0X3")));
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A2.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A2.js
index f9bb01465..25ce57f32 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A2.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A2.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The MV of StringNumericLiteral ::: StrWhiteSpace is 0
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A2.js
- * @description Strings with various WhiteSpaces convert to Number by explicit transformation
- */
+/*---
+info: "The MV of StringNumericLiteral ::: StrWhiteSpace is 0"
+description: >
+ Strings with various WhiteSpaces convert to Number by explicit
+ transformation
+---*/
// CHECK#1
if (Number("\u0009\u000C\u0020\u00A0\u000B\u000A\u000D\u2028\u2029\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000") !== 0) {
@@ -286,4 +286,3 @@ if (Number("\u3000") !== 0) {
$ERROR('#31.2: Number("\\u3000") === +0. Actual: -0');
}
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A20.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A20.js
index 78689d42d..cec898d2e 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A20.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A20.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The MV of DecimalDigit ::: 4 or of HexDigit ::: 4 is 4
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A20.js
- * @description Compare Number('0x4') and Number('0X4') with 4
- */
+/*---
+info: "The MV of DecimalDigit ::: 4 or of HexDigit ::: 4 is 4"
+description: Compare Number('0x4') and Number('0X4') with 4
+---*/
// CHECK#1
if (Number("4") !== 4) {
@@ -22,4 +20,3 @@ if (Number("0x4") !== 4) {
if (+("0X4") !== 4) {
$ERROR('#3: +("0X4") === 4. Actual: ' + (+("0X4")));
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A21.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A21.js
index de8fe9fe1..3902945a7 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A21.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A21.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The MV of DecimalDigit ::: 5 or of HexDigit ::: 5 is 5
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A21.js
- * @description Compare Number('0x5') and Number('0X5') with 5
- */
+/*---
+info: "The MV of DecimalDigit ::: 5 or of HexDigit ::: 5 is 5"
+description: Compare Number('0x5') and Number('0X5') with 5
+---*/
// CHECK#1
if (+("5") !== 5) {
@@ -22,4 +20,3 @@ if (Number("0x5") !== 5) {
if (Number("0X5") !== 5) {
$ERROR('#3: Number("0X5") === 5. Actual: ' + (Number("0X5")));
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A22.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A22.js
index 02aa703a3..6ac471bcb 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A22.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A22.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The MV of DecimalDigit ::: 6 or of HexDigit ::: 6 is 6
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A22.js
- * @description Compare Number('0x6') and Number('0X6') with 6
- */
+/*---
+info: "The MV of DecimalDigit ::: 6 or of HexDigit ::: 6 is 6"
+description: Compare Number('0x6') and Number('0X6') with 6
+---*/
// CHECK#1
if (Number("6") !== 6) {
@@ -22,4 +20,3 @@ if (+("0x6") !== 6) {
if (Number("0X6") !== 6) {
$ERROR('#3: Number("0X6") === 6. Actual: ' + (Number("0X6")));
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A23.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A23.js
index d1745156d..c2e60f21e 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A23.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A23.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The MV of DecimalDigit ::: 7 or of HexDigit ::: 7 is 7
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A23.js
- * @description Compare Number('0x7') and Number('0X7') with 7
- */
+/*---
+info: "The MV of DecimalDigit ::: 7 or of HexDigit ::: 7 is 7"
+description: Compare Number('0x7') and Number('0X7') with 7
+---*/
// CHECK#1
if (Number("7") !== 7) {
@@ -22,4 +20,3 @@ if (Number("0x7") !== 7) {
if (+("0X7") !== 7) {
$ERROR('#3: +("0X7") === 7. Actual: ' + (+("0X7")));
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A24.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A24.js
index 91409bead..b6c056c3a 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A24.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A24.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The MV of DecimalDigit ::: 8 or of HexDigit ::: 8 is 8
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A24.js
- * @description Compare Number('0x8') and Number('0X8') with 8
- */
+/*---
+info: "The MV of DecimalDigit ::: 8 or of HexDigit ::: 8 is 8"
+description: Compare Number('0x8') and Number('0X8') with 8
+---*/
// CHECK#1
if (+("8") !== 8) {
@@ -22,4 +20,3 @@ if (Number("0x8") !== 8) {
if (Number("0X8") !== 8) {
$ERROR('#3: Number("0X8") === 8. Actual: ' + (Number("0X8")));
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A25.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A25.js
index 761ceb443..c76ef6754 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A25.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A25.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The MV of DecimalDigit ::: 9 or of HexDigit ::: 9 is 9
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A25.js
- * @description Compare Number('0x9') and Number('0X9') with 9
- */
+/*---
+info: "The MV of DecimalDigit ::: 9 or of HexDigit ::: 9 is 9"
+description: Compare Number('0x9') and Number('0X9') with 9
+---*/
// CHECK#1
if (Number("9") !== 9) {
@@ -22,4 +20,3 @@ if (+("0x9") !== 9) {
if (Number("0X9") !== 9) {
$ERROR('#3: Number("0X9") === 9. Actual: ' + (Number("0X9")));
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A26.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A26.js
index 404203f59..097364d13 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A26.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A26.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 MV of HexDigit ::: a or of HexDigit ::: A is 10
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A26.js
- * @description Compare Number('0xA'), Number('0XA'), Number('0xa') and Number('0Xa') with 10
- */
+/*---
+info: "The MV of HexDigit ::: a or of HexDigit ::: A is 10"
+description: >
+ Compare Number('0xA'), Number('0XA'), Number('0xa') and
+ Number('0Xa') with 10
+---*/
// CHECK#1
if (Number("0xa") !== 10) {
@@ -27,4 +27,3 @@ if (Number("0Xa") !== 10) {
if (+("0XA") !== 10) {
$ERROR('#4: +("0XA") === 10. Actual: ' + (+("0XA")));
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A27.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A27.js
index 67e6a6e5f..a1188bfff 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A27.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A27.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 MV of HexDigit ::: b or of HexDigit ::: B is 11
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A27.js
- * @description Compare Number('0xB'), Number('0XB'), Number('0xb') and Number('0Xb') with 11
- */
+/*---
+info: "The MV of HexDigit ::: b or of HexDigit ::: B is 11"
+description: >
+ Compare Number('0xB'), Number('0XB'), Number('0xb') and
+ Number('0Xb') with 11
+---*/
// CHECK#1
if (Number("0xb") !== 11) {
@@ -27,4 +27,3 @@ if (+("0Xb") !== 11) {
if (Number("0XB") !== 11) {
$ERROR('#4: Number("0XB") === 11. Actual: ' + (Number("0XB")));
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A28.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A28.js
index d29b8c289..26d3f9f5a 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A28.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A28.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 MV of HexDigit ::: c or of HexDigit ::: C is 12
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A28.js
- * @description Compare Number('0xC'), Number('0XC'), Number('0xc') and Number('0Xc') with 12
- */
+/*---
+info: "The MV of HexDigit ::: c or of HexDigit ::: C is 12"
+description: >
+ Compare Number('0xC'), Number('0XC'), Number('0xc') and
+ Number('0Xc') with 12
+---*/
// CHECK#1
if (Number("0xc") !== 12) {
@@ -27,4 +27,3 @@ if (Number("0Xc") !== 12) {
if (Number("0XC") !== 12) {
$ERROR('#4: Number("0XC") === 12. Actual: ' + (Number("0XC")));
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A29.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A29.js
index 88473af85..018544dd1 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A29.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A29.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 MV of HexDigit ::: d or of HexDigit ::: D is 13
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A29.js
- * @description Compare Number('0xD'), Number('0XD'), Number('0xd') and Number('0Xd') with 13
- */
+/*---
+info: "The MV of HexDigit ::: d or of HexDigit ::: D is 13"
+description: >
+ Compare Number('0xD'), Number('0XD'), Number('0xd') and
+ Number('0Xd') with 13
+---*/
// CHECK#1
if (+("0xd") !== 13) {
@@ -27,4 +27,3 @@ if (Number("0Xd") !== 13) {
if (Number("0XD") !== 13) {
$ERROR('#4: Number("0XD") === 13. Actual: ' + (Number("0XD")));
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A30.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A30.js
index b94bacbd7..24c7de18c 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A30.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A30.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 MV of HexDigit ::: e or of HexDigit ::: E is 14
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A30.js
- * @description Compare Number('0xE'), Number('0XE'), Number('0xe') and Number('0Xe') with 14
- */
+/*---
+info: "The MV of HexDigit ::: e or of HexDigit ::: E is 14"
+description: >
+ Compare Number('0xE'), Number('0XE'), Number('0xe') and
+ Number('0Xe') with 14
+---*/
// CHECK#1
if (Number("0xe") !== 14) {
@@ -27,4 +27,3 @@ if (Number("0Xe") !== 14) {
if (+("0XE") !== 14) {
$ERROR('#4: +("0XE") === 14. Actual: ' + (+("0XE")));
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A31.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A31.js
index f5f151b76..453940784 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A31.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A31.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 MV of HexDigit ::: f or of HexDigit ::: F is 15
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A31.js
- * @description Compare Number('0xF'), Number('0XF'), Number('0xf') and Number('0Xf') with 15
- */
+/*---
+info: "The MV of HexDigit ::: f or of HexDigit ::: F is 15"
+description: >
+ Compare Number('0xF'), Number('0XF'), Number('0xf') and
+ Number('0Xf') with 15
+---*/
// CHECK#1
if (Number("0xf") !== 15) {
@@ -27,4 +27,3 @@ if (+("0Xf") !== 15) {
if (Number("0XF") !== 15) {
$ERROR('#4: Number("0XF") === 15. Actual: ' + (Number("0XF")));
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A32.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A32.js
index 700feb717..5c29066f7 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A32.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A32.js
@@ -1,15 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Once the exact MV for a string numeric literal has been
- * determined, it is then rounded to a value of the Number type with 20
- * significant digits by replacing each significant digit after the 20th
- * with a 0 digit or the number value
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A32.js
- * @description Use various long numbers, for example, 1234567890.1234567890
- */
+/*---
+info: >
+ Once the exact MV for a string numeric literal has been
+ determined, it is then rounded to a value of the Number type with 20
+ significant digits by replacing each significant digit after the 20th
+ with a 0 digit or the number value
+description: Use various long numbers, for example, 1234567890.1234567890
+---*/
// CHECK#1
if (Number("1234567890.1234567890") !== 1234567890.1234567890) {
@@ -35,4 +34,3 @@ if (Number("0.12345678901234567890") !== 0.123456789012345678) {
if (Number("00.12345678901234567890") !== 0.123456789012345678) {
$ERROR('#4: Number("00.12345678901234567890") === 0.123456789012345678. Actual: ' + (Number("00.12345678901234567890")));
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A3_T1.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A3_T1.js
index 304f5ba4e..de508381c 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A3_T1.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A3_T1.js
@@ -1,12 +1,13 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The MV of StringNumericLiteral ::: StrWhiteSpaceopt StrNumericLiteral StrWhiteSpaceopt is the MV of StrNumericLiteral, no matter whether white space is present or not
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A3_T1.js
- * @description static string
- */
+/*---
+info: >
+ The MV of StringNumericLiteral ::: StrWhiteSpaceopt StrNumericLiteral
+ StrWhiteSpaceopt is the MV of StrNumericLiteral, no matter whether white
+ space is present or not
+description: static string
+---*/
// CHECK#1
if (Number("\u0009\u000C\u0020\u00A0\u000B\u000A\u000D\u2028\u2029\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000") !== Number("")) {
@@ -27,4 +28,3 @@ if (!(+("\u0009\u000C\u0020\u00A0\u000B\u000A\u000D\u2028\u2029\u1680\u180E\u200
if (!(Number("\u0009\u000C\u0020\u00A0\u000B\u000A\u000D\u2028\u2029\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000-Infinity\u0009\u000C\u0020\u00A0\u000B\u000A\u000D\u2028\u2029\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000") == Number(-"Infinity"))) {
$ERROR('#4: Number("\\u0009\\u000C\\u0020\\u00A0\\u000B\\u000A\\u000D\\u2028\\u2029\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000-Infinity\\u0009\\u000C\\u0020\\u00A0\\u000B\\u000A\\u000D\\u2028\\u2029\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000") == Number("-Infinity")');
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A3_T2.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A3_T2.js
index 0969dd9bb..42b007473 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A3_T2.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A3_T2.js
@@ -1,12 +1,13 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The MV of StringNumericLiteral ::: StrWhiteSpaceopt StrNumericLiteral StrWhiteSpaceopt is the MV of StrNumericLiteral, no matter whether white space is present or not
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A3_T2.js
- * @description dynamic string
- */
+/*---
+info: >
+ The MV of StringNumericLiteral ::: StrWhiteSpaceopt StrNumericLiteral
+ StrWhiteSpaceopt is the MV of StrNumericLiteral, no matter whether white
+ space is present or not
+description: dynamic string
+---*/
function dynaString(s1, s2){
return String(s1)+String(s2);
@@ -31,4 +32,3 @@ if (!(Number(dynaString("\u0009\u000C\u0020\u00A0\u000B\u000A\u000D\u2028\u2029I
if (!(Number(dynaString("\u0009\u000C\u0020\u00A0\u000B\u000A\u000D\u2028\u2029-Infi", "nity\u0009\u000C\u0020\u00A0\u000B\u000A\u000D\u2028\u2029\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000")) == Number(-"Infinity"))) {
$ERROR('#4: Number("\\u0009\\u000C\\u0020\\u00A0\\u000B\\u000A\\u000D\\u2028\\u2029-Infi"+"nity\\u0009\\u000C\\u0020\\u00A0\\u000B\\u000A\\u000D\\u2028\\u2029\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000") == Number("-Infinity")');
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A4_T1.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A4_T1.js
index 8d2051140..fdb0c5051 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A4_T1.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A4_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.
-/**
- * The MV of StrDecimalLiteral::: + StrUnsignedDecimalLiteral is the MV of StrUnsignedDecimalLiteral
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A4_T1.js
- * @description Compare Number('+any_number') with Number('any_number')
- */
+/*---
+info: >
+ The MV of StrDecimalLiteral::: + StrUnsignedDecimalLiteral is the MV of
+ StrUnsignedDecimalLiteral
+description: Compare Number('+any_number') with Number('any_number')
+---*/
// CHECK#1
if (Number("+0") !== Number("0")) {
@@ -47,4 +47,3 @@ if (Number("+1234.5678e-90") !== Number("1234.5678e-90")) {
if (Number("+1234.5678E-90") !== Number("1234.5678E-90")) {
$ERROR('#8: Number("+1234.5678E-90") === Number("1234.5678E-90")');
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A4_T2.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A4_T2.js
index e10d517ce..92517cdc3 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A4_T2.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A4_T2.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 MV of StrDecimalLiteral::: + StrUnsignedDecimalLiteral is the MV of StrUnsignedDecimalLiteral
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A4_T2.js
- * @description Compare Number('+' + 'any_number') with Number('any_number')
- */
+/*---
+info: >
+ The MV of StrDecimalLiteral::: + StrUnsignedDecimalLiteral is the MV of
+ StrUnsignedDecimalLiteral
+description: Compare Number('+' + 'any_number') with Number('any_number')
+---*/
function dynaString(s1, s2){
return String(s1)+String(s2);
@@ -51,4 +51,3 @@ if (Number(dynaString("+1234.", "5678e-90")) !== Number("1234.5678e-90")) {
if (Number(dynaString("+1234.", "5678E-90")) !== Number("1234.5678E-90")) {
$ERROR('#8: Number("+1234."+"5678E-90") === Number("1234.5678E-90")');
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A5_T1.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A5_T1.js
index b6bb8137d..5f8abc8bc 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A5_T1.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A5_T1.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The MV of StrDecimalLiteral::: - StrUnsignedDecimalLiteral is the negative
- * of the MV of StrUnsignedDecimalLiteral. (the negative of this 0 is also 0)
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A5_T1.js
- * @description Compare Number('-any_number') with -Number('any_number')
- */
+/*---
+info: >
+ The MV of StrDecimalLiteral::: - StrUnsignedDecimalLiteral is the negative
+ of the MV of StrUnsignedDecimalLiteral. (the negative of this 0 is also 0)
+description: Compare Number('-any_number') with -Number('any_number')
+---*/
// CHECK#1
if (Number("-0") !== -Number("0")) {
@@ -58,4 +57,3 @@ if (Number("-1234.5678E-90") !== -Number("1234.5678E-90")) {
if (Number("-Infinity") !== Number.NEGATIVE_INFINITY) {
$ERROR('#3: Number("-Infinity") === Number.NEGATIVE_INFINITY');
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A5_T2.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A5_T2.js
index 47bc6549e..d2f6576c6 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A5_T2.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A5_T2.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The MV of StrDecimalLiteral::: - StrUnsignedDecimalLiteral is the negative
- * of the MV of StrUnsignedDecimalLiteral. (the negative of this 0 is also 0)
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A5_T2.js
- * @description Compare Number('-[or +]any_number') with -[or without -]any_number)
- */
+/*---
+info: >
+ The MV of StrDecimalLiteral::: - StrUnsignedDecimalLiteral is the negative
+ of the MV of StrUnsignedDecimalLiteral. (the negative of this 0 is also 0)
+description: Compare Number('-[or +]any_number') with -[or without -]any_number)
+---*/
// CHECK#1
if (Number("1") !== 1) {
@@ -143,4 +142,3 @@ if (Number("+9") !== 9) {
if (Number("-9") !== -9) {
$ERROR('#27: Number("-9") === -9');
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A5_T3.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A5_T3.js
index c062e198f..71a9a0c60 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A5_T3.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A5_T3.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The MV of StrDecimalLiteral::: - StrUnsignedDecimalLiteral is the negative
- * of the MV of StrUnsignedDecimalLiteral. (the negative of this 0 is also 0)
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A5_T3.js
- * @description Compare Number('-' + 'any_number') with -Number('any_number')
- */
+/*---
+info: >
+ The MV of StrDecimalLiteral::: - StrUnsignedDecimalLiteral is the negative
+ of the MV of StrUnsignedDecimalLiteral. (the negative of this 0 is also 0)
+description: Compare Number('-' + 'any_number') with -Number('any_number')
+---*/
function dynaString(s1, s2){
return String(s1)+String(s2);
@@ -62,4 +61,3 @@ if (Number(dynaString("-1234.", "5678E-90")) !== -Number("1234.5678E-90")) {
if (Number(dynaString("-Infi", "nity")) !== Number.NEGATIVE_INFINITY) {
$ERROR('#3: Number("-Infi"+"nity") === Number.NEGATIVE_INFINITY');
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A6_T1.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A6_T1.js
index 6aeeef242..7d026112b 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A6_T1.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A6_T1.js
@@ -1,13 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The MV of StrUnsignedDecimalLiteral::: Infinity is 10<sup><small>10000</small></sup>
- * (a value so large that it will round to <b><tt>+&infin;</tt></b>)
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A6_T1.js
- * @description Compare Number('Infinity') with Number.POSITIVE_INFINITY, 10e10000, 10E10000 and Number("10e10000")
- */
+/*---
+info: >
+ The MV of StrUnsignedDecimalLiteral::: Infinity is 10<sup><small>10000</small></sup>
+ (a value so large that it will round to <b><tt>+&infin;</tt></b>)
+description: >
+ Compare Number('Infinity') with Number.POSITIVE_INFINITY,
+ 10e10000, 10E10000 and Number("10e10000")
+---*/
// CHECK#1
if (Number("Infinity") !== Number.POSITIVE_INFINITY) {
@@ -28,4 +29,3 @@ if (Number("Infinity") !== 10E10000) {
if (Number("Infinity") !== Number("10e10000")) {
$ERROR('#4: Number("Infinity") === Number("10e10000")');
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A6_T2.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A6_T2.js
index 9e4659873..ee6507333 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A6_T2.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A6_T2.js
@@ -1,13 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The MV of StrUnsignedDecimalLiteral::: Infinity is 10<sup><small>10000</small></sup>
- * (a value so large that it will round to <b><tt>+&infin;</tt></b>)
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A6_T2.js
- * @description Compare Number('Infi'+'nity') with Number.POSITIVE_INFINITY, 10e10000, 10E10000 and Number("10e10000")
- */
+/*---
+info: >
+ The MV of StrUnsignedDecimalLiteral::: Infinity is 10<sup><small>10000</small></sup>
+ (a value so large that it will round to <b><tt>+&infin;</tt></b>)
+description: >
+ Compare Number('Infi'+'nity') with Number.POSITIVE_INFINITY,
+ 10e10000, 10E10000 and Number("10e10000")
+---*/
function dynaString(s1, s2){
return String(s1)+String(s2);
@@ -33,4 +34,3 @@ if (Number(dynaString("Infi", "nity")) !== 10E10000) {
if (Number(dynaString("Infi", "nity")) !== Number("10e10000")) {
$ERROR('#4: Number("Infi"+"nity") === Number("10e10000")');
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A7.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A7.js
index 50a7f357f..a47bc90df 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A7.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A7.js
@@ -1,17 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The MV of StrUnsignedDecimalLiteral::: DecimalDigits. DecimalDigits
- * is the MV of the first DecimalDigits plus the MV of the second DecimalDigits times
- * 10<sup><small>-n</small></sup>, where n is the number of characters in the second DecimalDigits
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A7.js
- * @description Compare Number('1234.5678') with Number('1234')+(+('5678')*1e-4)
- */
+/*---
+info: >
+ The MV of StrUnsignedDecimalLiteral::: DecimalDigits. DecimalDigits
+ is the MV of the first DecimalDigits plus the MV of the second DecimalDigits times
+ 10<sup><small>-n</small></sup>, where n is the number of characters in the second DecimalDigits
+description: Compare Number('1234.5678') with Number('1234')+(+('5678')*1e-4)
+---*/
// CHECK#1
if (Number("1234.5678") !== Number("1234")+(+("5678")*1e-4)) {
$ERROR('#1: Number("1234.5678") === Number("1234")+(+("5678")*1e-4)');
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A8.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A8.js
index 6b7a5d4a3..da4ac86a1 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A8.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A8.js
@@ -1,13 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The MV of StrUnsignedDecimalLiteral::: DecimalDigits. ExponentPart
- * is the MV of DecimalDigits times 10<sup><small>e</small></sup> , where e is the MV of ExponentPart
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A8.js
- * @description Compare Number('1234e5') and Number('1234.e5') with Number('1234')*1e5
- */
+/*---
+info: >
+ The MV of StrUnsignedDecimalLiteral::: DecimalDigits. ExponentPart
+ is the MV of DecimalDigits times 10<sup><small>e</small></sup> , where e is the MV of ExponentPart
+description: >
+ Compare Number('1234e5') and Number('1234.e5') with
+ Number('1234')*1e5
+---*/
// CHECK#1
if (Number("1234e5") !== Number("1234")*1e5) {
@@ -18,4 +19,3 @@ if (Number("1234e5") !== Number("1234")*1e5) {
if (Number("1234.e5") !== +("1234")*1e5) {
$ERROR('#2: Number("1234.e5") === +("1234")*1e5');
}
-
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A9.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A9.js
index 1c88a5322..3961abe13 100644
--- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A9.js
+++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A9.js
@@ -1,16 +1,17 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The MV of StrUnsignedDecimalLiteral::: DecimalDigits. DecimalDigits ExponentPart
- * is (the MV of the first DecimalDigits plus (the MV of the second DecimalDigits times
- * 10<sup><small>-n</small></sup>)) times 10<sup><small>e</small></sup>, where n is the number
- * of characters in the second DecimalDigits and e is the MV of ExponentPart
- *
- * @path ch09/9.3/9.3.1/S9.3.1_A9.js
- * @description Compare Number('1234.5678e9') with (Number('1234')+(Number('5678')*1e-4))*1e9,
- * and +('1234.5678e-9') with (Number('1234')+(Number('5678')*1e-4))*1e-9
- */
+/*---
+info: >
+ The MV of StrUnsignedDecimalLiteral::: DecimalDigits. DecimalDigits ExponentPart
+ is (the MV of the first DecimalDigits plus (the MV of the second DecimalDigits times
+ 10<sup><small>-n</small></sup>)) times 10<sup><small>e</small></sup>, where n is the number
+ of characters in the second DecimalDigits and e is the MV of ExponentPart
+description: >
+ Compare Number('1234.5678e9') with
+ (Number('1234')+(Number('5678')*1e-4))*1e9, and +('1234.5678e-9')
+ with (Number('1234')+(Number('5678')*1e-4))*1e-9
+---*/
// CHECK#1
if (Number("1234.5678e9") !== (Number("1234")+(Number("5678")*1e-4))*1e9) {
@@ -21,4 +22,3 @@ if (Number("1234.5678e9") !== (Number("1234")+(Number("5678")*1e-4))*1e9) {
if (+("1234.5678e-9") !== (Number("1234")+(Number("5678")*1e-4))*1e-9) {
$ERROR('#2: +("1234.5678e-9") === (Number("1234")+(Number("5678")*1e-4))*1e-9');
}
-
diff --git a/test/suite/ch09/9.3/S9.3_A1_T1.js b/test/suite/ch09/9.3/S9.3_A1_T1.js
index bd7869f1e..e8bf07f9d 100644
--- a/test/suite/ch09/9.3/S9.3_A1_T1.js
+++ b/test/suite/ch09/9.3/S9.3_A1_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.
-/**
- * Result of number conversion from undefined value is NaN
- *
- * @path ch09/9.3/S9.3_A1_T1.js
- * @description Undefined convert to Number by explicit transformation
- */
+/*---
+info: Result of number conversion from undefined value is NaN
+description: Undefined convert to Number by explicit transformation
+---*/
// CHECK#1
if (isNaN(Number(undefined)) !== true) {
@@ -22,4 +20,3 @@ if (isNaN(Number(void 0)) !== true) {
if (isNaN(Number(eval("var x"))) !== true) {
$ERROR('#3: Number(eval("var x")) === Not-a-Number. Actual: ' + (Number(eval("var x"))));
}
-
diff --git a/test/suite/ch09/9.3/S9.3_A1_T2.js b/test/suite/ch09/9.3/S9.3_A1_T2.js
index 930e96919..2ac4d44e5 100644
--- a/test/suite/ch09/9.3/S9.3_A1_T2.js
+++ b/test/suite/ch09/9.3/S9.3_A1_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.
-/**
- * Result of number conversion from undefined value is NaN
- *
- * @path ch09/9.3/S9.3_A1_T2.js
- * @description Undefined convert to Number by implicit transformation
- */
+/*---
+info: Result of number conversion from undefined value is NaN
+description: Undefined convert to Number by implicit transformation
+---*/
// CHECK#1
if (isNaN(+(undefined)) !== true) {
@@ -22,4 +20,3 @@ if (isNaN(+(void 0)) !== true) {
if (isNaN(+(eval("var x"))) !== true) {
$ERROR('#3: +(eval("var x")) === Not-a-Number. Actual: ' + (+(eval("var x"))));
}
-
diff --git a/test/suite/ch09/9.3/S9.3_A2_T1.js b/test/suite/ch09/9.3/S9.3_A2_T1.js
index 2be743bc7..c95cc439e 100644
--- a/test/suite/ch09/9.3/S9.3_A2_T1.js
+++ b/test/suite/ch09/9.3/S9.3_A2_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.
-/**
- * Result of number conversion from null value is +0
- *
- * @path ch09/9.3/S9.3_A2_T1.js
- * @description null convert to Number by explicit transformation
- */
+/*---
+info: Result of number conversion from null value is +0
+description: null convert to Number by explicit transformation
+---*/
// CHECK #1
if (Number(null) !== 0) {
@@ -16,4 +14,3 @@ if (Number(null) !== 0) {
$ERROR('#1.2: Number(null) === +0. Actual: -0');
}
}
-
diff --git a/test/suite/ch09/9.3/S9.3_A2_T2.js b/test/suite/ch09/9.3/S9.3_A2_T2.js
index ce035b90a..4f9593935 100644
--- a/test/suite/ch09/9.3/S9.3_A2_T2.js
+++ b/test/suite/ch09/9.3/S9.3_A2_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.
-/**
- * Result of number conversion from null value is +0
- *
- * @path ch09/9.3/S9.3_A2_T2.js
- * @description null convert to Number by implicit transformation
- */
+/*---
+info: Result of number conversion from null value is +0
+description: null convert to Number by implicit transformation
+---*/
// CHECK #1
if (+(null) !== 0) {
@@ -16,4 +14,3 @@ if (+(null) !== 0) {
$ERROR('#1.2: +(null) === +0. Actual: -0');
}
}
-
diff --git a/test/suite/ch09/9.3/S9.3_A3_T1.js b/test/suite/ch09/9.3/S9.3_A3_T1.js
index 1feee2b6b..5ee2e84b2 100644
--- a/test/suite/ch09/9.3/S9.3_A3_T1.js
+++ b/test/suite/ch09/9.3/S9.3_A3_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.
-/**
- * Result of number conversion from boolean value is 1 if the argument is true, else is +0
- *
- * @path ch09/9.3/S9.3_A3_T1.js
- * @description False and true convert to Number by explicit transformation
- */
+/*---
+info: >
+ Result of number conversion from boolean value is 1 if the argument is
+ true, else is +0
+description: False and true convert to Number by explicit transformation
+---*/
// CHECK#1
if (Number(false) !== +0) {
@@ -21,4 +21,3 @@ if (Number(false) !== +0) {
if (Number(true) !== 1) {
$ERROR('#2: Number(true) === 1. Actual: ' + (Number(true)));
}
-
diff --git a/test/suite/ch09/9.3/S9.3_A3_T2.js b/test/suite/ch09/9.3/S9.3_A3_T2.js
index 4b7f30539..bd85cf7b4 100644
--- a/test/suite/ch09/9.3/S9.3_A3_T2.js
+++ b/test/suite/ch09/9.3/S9.3_A3_T2.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.
-/**
- * Result of number conversion from boolean value is 1 if the argument is true, else is +0
- *
- * @path ch09/9.3/S9.3_A3_T2.js
- * @description False and true convert to Number by implicit transformation
- */
+/*---
+info: >
+ Result of number conversion from boolean value is 1 if the argument is
+ true, else is +0
+description: False and true convert to Number by implicit transformation
+---*/
// CHECK#1
if (+(false) !== +0) {
@@ -21,4 +21,3 @@ if (+(false) !== +0) {
if (+(true) !== 1) {
$ERROR('#2: +(true) === 1. Actual: ' + (+(true)));
}
-
diff --git a/test/suite/ch09/9.3/S9.3_A4.1_T1.js b/test/suite/ch09/9.3/S9.3_A4.1_T1.js
index 96d24be9f..a1dfd39c2 100644
--- a/test/suite/ch09/9.3/S9.3_A4.1_T1.js
+++ b/test/suite/ch09/9.3/S9.3_A4.1_T1.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.
-/**
- * Result of number conversion from number value equals to the input argument (no conversion)
- *
- * @path ch09/9.3/S9.3_A4.1_T1.js
- * @description Some numbers including Number.MAX_VALUE and Number.MIN_VALUE are converted to Number with explicit transformation
- */
+/*---
+info: >
+ Result of number conversion from number value equals to the input
+ argument (no conversion)
+description: >
+ Some numbers including Number.MAX_VALUE and Number.MIN_VALUE are
+ converted to Number with explicit transformation
+---*/
// CHECK#1
if (Number(13) !== 13) {
@@ -36,5 +38,4 @@ if (Number(Number.MAX_VALUE) !== 1.7976931348623157e308) {
// CHECK#6
if (Number(Number.MIN_VALUE) !== 5e-324) {
$ERROR('#6: Number(Number.MIN_VALUE) === 5e-324. Actual: ' + (Number(Number.MIN_VALUE)));
-}
-
+}
diff --git a/test/suite/ch09/9.3/S9.3_A4.1_T2.js b/test/suite/ch09/9.3/S9.3_A4.1_T2.js
index 6c1c28b3d..5682851c7 100644
--- a/test/suite/ch09/9.3/S9.3_A4.1_T2.js
+++ b/test/suite/ch09/9.3/S9.3_A4.1_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.
-/**
- * Result of number conversion from number value equals to the input argument (no conversion)
- *
- * @path ch09/9.3/S9.3_A4.1_T2.js
- * @description Some numbers including Number.MAX_VALUE and Number.MIN_VALUE are converted to Number with implicit transformation
- */
+/*---
+info: >
+ Result of number conversion from number value equals to the input
+ argument (no conversion)
+description: >
+ Some numbers including Number.MAX_VALUE and Number.MIN_VALUE are
+ converted to Number with implicit transformation
+---*/
// CHECK#1
if (+(13) !== 13) {
@@ -36,5 +38,4 @@ if (+(Number.MAX_VALUE) !== 1.7976931348623157e308) {
// CHECK#6
if (+(Number.MIN_VALUE) !== 5e-324) {
$ERROR('#6: +(Number.MIN_VALUE) === 5e-324. Actual: ' + (+(Number.MIN_VALUE)));
-}
-
+}
diff --git a/test/suite/ch09/9.3/S9.3_A4.2_T1.js b/test/suite/ch09/9.3/S9.3_A4.2_T1.js
index 788f20cb9..d4beae180 100644
--- a/test/suite/ch09/9.3/S9.3_A4.2_T1.js
+++ b/test/suite/ch09/9.3/S9.3_A4.2_T1.js
@@ -1,13 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Result of number conversion from number value equals to the input argument (no conversion)
- *
- * @path ch09/9.3/S9.3_A4.2_T1.js
- * @description Number.NaN, +0, -0, Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY,
- * Number.MAX_VALUE and Number.MIN_VALUE convert to Number by explicit transformation
- */
+/*---
+info: >
+ Result of number conversion from number value equals to the input
+ argument (no conversion)
+description: >
+ Number.NaN, +0, -0, Number.POSITIVE_INFINITY,
+ Number.NEGATIVE_INFINITY, Number.MAX_VALUE and Number.MIN_VALUE
+ convert to Number by explicit transformation
+---*/
// CHECK#1
if (isNaN(Number(Number.NaN)) !== true) {
@@ -51,4 +53,3 @@ if (Number(Number.MAX_VALUE) !== Number.MAX_VALUE) {
if (Number(Number.MIN_VALUE) !== Number.MIN_VALUE) {
$ERROR('#7: Number(Number.MIN_VALUE) === Number.MIN_VALUE. Actual: ' + (Number(Number.MIN_VALUE)));
}
-
diff --git a/test/suite/ch09/9.3/S9.3_A4.2_T2.js b/test/suite/ch09/9.3/S9.3_A4.2_T2.js
index 3e4d8ad4a..886274c58 100644
--- a/test/suite/ch09/9.3/S9.3_A4.2_T2.js
+++ b/test/suite/ch09/9.3/S9.3_A4.2_T2.js
@@ -1,13 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Result of number conversion from number value equals to the input argument (no conversion)
- *
- * @path ch09/9.3/S9.3_A4.2_T2.js
- * @description Number.NaN, +0, -0, Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY,
- * Number.MAX_VALUE and Number.MIN_VALUE convert to Number by implicit transformation
- */
+/*---
+info: >
+ Result of number conversion from number value equals to the input
+ argument (no conversion)
+description: >
+ Number.NaN, +0, -0, Number.POSITIVE_INFINITY,
+ Number.NEGATIVE_INFINITY, Number.MAX_VALUE and Number.MIN_VALUE
+ convert to Number by implicit transformation
+---*/
// CHECK#1
if (isNaN(+(Number.NaN)) !== true) {
@@ -51,4 +53,3 @@ if (+(Number.MAX_VALUE) !== Number.MAX_VALUE) {
if (+(Number.MIN_VALUE) !== Number.MIN_VALUE) {
$ERROR('#7: +(Number.MIN_VALUE) === Number.MIN_VALUE. Actual: ' + (+(Number.MIN_VALUE)));
}
-
diff --git a/test/suite/ch09/9.3/S9.3_A5_T1.js b/test/suite/ch09/9.3/S9.3_A5_T1.js
index a76f65b1d..4cf6479c1 100644
--- a/test/suite/ch09/9.3/S9.3_A5_T1.js
+++ b/test/suite/ch09/9.3/S9.3_A5_T1.js
@@ -1,14 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Result of number conversion from object value is the result
- * of conversion from primitive value
- *
- * @path ch09/9.3/S9.3_A5_T1.js
- * @description new Number(), new Number(0), new Number(Number.NaN), new Number(null),
- * new Number(void 0) and others convert to Number by explicit transformation
- */
+/*---
+info: >
+ Result of number conversion from object value is the result
+ of conversion from primitive value
+description: >
+ new Number(), new Number(0), new Number(Number.NaN), new
+ Number(null), new Number(void 0) and others convert to Number by
+ explicit transformation
+---*/
// CHECK#1
if (Number(new Number()) !== 0) {
@@ -123,4 +124,3 @@ var myobj5 = {
if (isNaN(Number(myobj5)) !== true){
$ERROR("#15: Number(myobj5) calls ToPrimitive with hint Number. Exptected: Not-a-Number. Actual: " + (Number(myobj5)));
}
-
diff --git a/test/suite/ch09/9.3/S9.3_A5_T2.js b/test/suite/ch09/9.3/S9.3_A5_T2.js
index b4ebb5422..252c96b39 100644
--- a/test/suite/ch09/9.3/S9.3_A5_T2.js
+++ b/test/suite/ch09/9.3/S9.3_A5_T2.js
@@ -1,14 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Result of number conversion from object value is the result
- * of conversion from primitive value
- *
- * @path ch09/9.3/S9.3_A5_T2.js
- * @description new Number(), new Number(0), new Number(Number.NaN), new Number(null),
- * new Number(void 0) and others convert to Number by implicit transformation
- */
+/*---
+info: >
+ Result of number conversion from object value is the result
+ of conversion from primitive value
+description: >
+ new Number(), new Number(0), new Number(Number.NaN), new
+ Number(null), new Number(void 0) and others convert to Number by
+ implicit transformation
+---*/
// CHECK#1
if (+(new Number()) !== 0) {
@@ -123,4 +124,3 @@ var myobj5 = {
if (isNaN(+(myobj5)) !== true){
$ERROR("#15: +(myobj5) calls ToPrimitive with hint +. Exptected: 12345. Actual: " + (+(myobj5)));
}
-
diff --git a/test/suite/ch09/9.4/S9.4_A1.js b/test/suite/ch09/9.4/S9.4_A1.js
index 6c1b354c4..98f3c6126 100644
--- a/test/suite/ch09/9.4/S9.4_A1.js
+++ b/test/suite/ch09/9.4/S9.4_A1.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If ToNumber(value) is NaN, ToInteger(value) returns +0
- *
- * @path ch09/9.4/S9.4_A1.js
- * @description Check what position is defined by Number.NaN in string "abc": "abc".charAt(Number.NaN)
- */
+/*---
+info: If ToNumber(value) is NaN, ToInteger(value) returns +0
+description: >
+ Check what position is defined by Number.NaN in string "abc":
+ "abc".charAt(Number.NaN)
+---*/
// CHECK#1
if ("abc".charAt(Number.NaN) !== "a") {
@@ -17,4 +17,3 @@ if ("abc".charAt(Number.NaN) !== "a") {
if ("abc".charAt("x") !== "a") {
$ERROR('#2: "abc".charAt("x") === "a". Actual: ' + ("abc".charAt("x")));
}
-
diff --git a/test/suite/ch09/9.4/S9.4_A2.js b/test/suite/ch09/9.4/S9.4_A2.js
index 6b0ac54ac..45642e631 100644
--- a/test/suite/ch09/9.4/S9.4_A2.js
+++ b/test/suite/ch09/9.4/S9.4_A2.js
@@ -1,13 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If ToNumber(value) is +0, -0, +Infinity, or -Infinity,
- * return ToNumber(value)
- *
- * @path ch09/9.4/S9.4_A2.js
- * @description Check what position is defined by Number.NaN in string "abc": "abc".charAt(Number.NaN)
- */
+/*---
+info: >
+ If ToNumber(value) is +0, -0, +Infinity, or -Infinity,
+ return ToNumber(value)
+description: >
+ Check what position is defined by Number.NaN in string "abc":
+ "abc".charAt(Number.NaN)
+---*/
// CHECK#1
if ("abc".charAt(0.0) !== "a") {
@@ -18,4 +19,3 @@ if ("abc".charAt(0.0) !== "a") {
if ("abc".charAt(-0.0) !== "a") {
$ERROR('#2: "abc".charAt(-0.0) === "a". Actual: ' + ("abc".charAt(-0.0)));
}
-
diff --git a/test/suite/ch09/9.4/S9.4_A3_T1.js b/test/suite/ch09/9.4/S9.4_A3_T1.js
index d16c30b38..cbbfb4bcc 100644
--- a/test/suite/ch09/9.4/S9.4_A3_T1.js
+++ b/test/suite/ch09/9.4/S9.4_A3_T1.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Result of ToInteger(value) conversion is the result of computing
- * sign(ToNumber(value)) * floor(abs(ToNumber(value)))
- *
- * @path ch09/9.4/S9.4_A3_T1.js
- * @description For testing constructor Date(Number) is used
- */
+/*---
+info: >
+ Result of ToInteger(value) conversion is the result of computing
+ sign(ToNumber(value)) * floor(abs(ToNumber(value)))
+description: For testing constructor Date(Number) is used
+---*/
// CHECK#1
var d1 = new Date(6.54321);
@@ -80,4 +79,3 @@ var d12 = new Date(-1.23e-15);
if (d12.valueOf() !== -0) {
$ERROR('#12: var d12 = new Date(-1.23e-15); d12.valueOf() === -0;');
}
-
diff --git a/test/suite/ch09/9.4/S9.4_A3_T2.js b/test/suite/ch09/9.4/S9.4_A3_T2.js
index f3a9796e8..e6faa5c4f 100644
--- a/test/suite/ch09/9.4/S9.4_A3_T2.js
+++ b/test/suite/ch09/9.4/S9.4_A3_T2.js
@@ -1,13 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Result of ToInteger(value) conversion is the result of computing
- * sign(ToNumber(value)) * floor(abs(ToNumber(value)))
- *
- * @path ch09/9.4/S9.4_A3_T2.js
- * @description For testing constructor Date(NaN, Infinity, Infinity, +0 and -0) is used
- */
+/*---
+info: >
+ Result of ToInteger(value) conversion is the result of computing
+ sign(ToNumber(value)) * floor(abs(ToNumber(value)))
+description: >
+ For testing constructor Date(NaN, Infinity, Infinity, +0 and -0)
+ is used
+---*/
// CHECK#1
var d1 = new Date(Number.NaN);
@@ -38,4 +39,3 @@ var d5 = new Date(-0);
if (d5.valueOf() !== -0) {
$ERROR('#5: var d5 = new Date(-0); d5.valueOf() === -0;');
}
-
diff --git a/test/suite/ch09/9.5/S9.5_A1_T1.js b/test/suite/ch09/9.5/S9.5_A1_T1.js
index 76296a3a9..abebe98ad 100644
--- a/test/suite/ch09/9.5/S9.5_A1_T1.js
+++ b/test/suite/ch09/9.5/S9.5_A1_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.
-/**
- * If value is NaN, +0, -0, +Infinity, or -Infinity, return +0
- *
- * @path ch09/9.5/S9.5_A1_T1.js
- * @description For testing use operator <<0
- */
+/*---
+info: If value is NaN, +0, -0, +Infinity, or -Infinity, return +0
+description: For testing use operator <<0
+---*/
// CHECK#1
if ((Number.NaN << 0) !== +0) {
@@ -49,4 +47,3 @@ if ((Number.NEGATIVE_INFINITY << 0) !== +0) {
} else if (1/(Number.NEGATIVE_INFINITY << 0) !== Number.POSITIVE_INFINITY) {
$ERROR("#6.2: (Number.NEGATIVE_INFINITY << 0) === +0. Actual: -0");
}
-
diff --git a/test/suite/ch09/9.5/S9.5_A2.1_T1.js b/test/suite/ch09/9.5/S9.5_A2.1_T1.js
index 943425e85..a70864ebf 100644
--- a/test/suite/ch09/9.5/S9.5_A2.1_T1.js
+++ b/test/suite/ch09/9.5/S9.5_A2.1_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.
-/**
- * ToInt32 returns values between -2^31 and 2^31-1
- *
- * @path ch09/9.5/S9.5_A2.1_T1.js
- * @description Converting some numbers, which are in\outside of Int32 scopes, with <<0 operator
- */
+/*---
+info: ToInt32 returns values between -2^31 and 2^31-1
+description: >
+ Converting some numbers, which are in\outside of Int32 scopes,
+ with <<0 operator
+---*/
// CHECK#1
if ((-2147483647 << 0) !== -2147483647) {
@@ -47,4 +47,3 @@ if ((2147483648 << 0) !== -2147483648) {
if ((4294967296 << 0) !== 0) {
$ERROR('#8: (4294967296 << 0) === 0. Actual: ' + ((4294967296 << 0)));
}
-
diff --git a/test/suite/ch09/9.5/S9.5_A2.1_T2.js b/test/suite/ch09/9.5/S9.5_A2.1_T2.js
index 9037035c8..6e3e99cb8 100644
--- a/test/suite/ch09/9.5/S9.5_A2.1_T2.js
+++ b/test/suite/ch09/9.5/S9.5_A2.1_T2.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.
-/**
- * ToInt32 returns values between -2^31 and 2^31-1
- *
- * @path ch09/9.5/S9.5_A2.1_T2.js
- * @description Converting some numbers, which are in\outside of Int32 scopes, with ~ operator
- */
+/*---
+info: ToInt32 returns values between -2^31 and 2^31-1
+description: >
+ Converting some numbers, which are in\outside of Int32 scopes,
+ with ~ operator
+---*/
// CHECK#1
if (~-2147483649 !== ~2147483647) {
@@ -27,4 +27,3 @@ if (~2147483648 !== ~-2147483648) {
if (~4294967296 !== ~0) {
$ERROR('#4: ~4294967296 === ~0');
}
-
diff --git a/test/suite/ch09/9.5/S9.5_A2.2_T1.js b/test/suite/ch09/9.5/S9.5_A2.2_T1.js
index e8c454498..cf68b598d 100644
--- a/test/suite/ch09/9.5/S9.5_A2.2_T1.js
+++ b/test/suite/ch09/9.5/S9.5_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.
-/**
- * Compute result modulo 2^32
- *
- * @path ch09/9.5/S9.5_A2.2_T1.js
- * @description Use operator <<0
- */
+/*---
+info: Compute result modulo 2^32
+description: Use operator <<0
+---*/
// CHECK#1
if ((-2147483647 << 0) !== -2147483647) {
@@ -67,4 +65,3 @@ if ((8589934592 << 0) !== 0) {
if ((8589934593 << 0) !== 1) {
$ERROR('#12: (8589934593 << 0) === 1. Actual: ' + ((8589934593 << 0)));
}
-
diff --git a/test/suite/ch09/9.5/S9.5_A2.2_T2.js b/test/suite/ch09/9.5/S9.5_A2.2_T2.js
index a138d03d7..7d1b7e5ce 100644
--- a/test/suite/ch09/9.5/S9.5_A2.2_T2.js
+++ b/test/suite/ch09/9.5/S9.5_A2.2_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.
-/**
- * Compute result modulo 2^32
- *
- * @path ch09/9.5/S9.5_A2.2_T2.js
- * @description Use operator ~
- */
+/*---
+info: Compute result modulo 2^32
+description: Use operator ~
+---*/
// CHECK#1
if (~-2147483647 !== 2147483646) {
@@ -67,4 +65,3 @@ if ((~8589934592 << 0) !== ~0) {
if ((~8589934593 << 0) !== ~1) {
$ERROR('#12: (~8589934593 << 0) === ~1)');
}
-
diff --git a/test/suite/ch09/9.5/S9.5_A2.3_T1.js b/test/suite/ch09/9.5/S9.5_A2.3_T1.js
index af0e3702e..a4c65c453 100644
--- a/test/suite/ch09/9.5/S9.5_A2.3_T1.js
+++ b/test/suite/ch09/9.5/S9.5_A2.3_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.
-/**
- * If result is greater than or equal to 2^31, return result -2^32
- *
- * @path ch09/9.5/S9.5_A2.3_T1.js
- * @description Use operator <<0
- */
+/*---
+info: If result is greater than or equal to 2^31, return result -2^32
+description: Use operator <<0
+---*/
// CHECK#1
if ((2147483647 << 0) !== 2147483647) {
@@ -37,6 +35,3 @@ if ((4294967296 << 0) !== 0) {
if ((4294967297 << 0) !== 1) {
$ERROR('#6: (4294967297 << 0) === 1. Actual: ' + ((4294967297 << 0)));
}
-
-
-
diff --git a/test/suite/ch09/9.5/S9.5_A2.3_T2.js b/test/suite/ch09/9.5/S9.5_A2.3_T2.js
index 70c23270b..4afa689c4 100644
--- a/test/suite/ch09/9.5/S9.5_A2.3_T2.js
+++ b/test/suite/ch09/9.5/S9.5_A2.3_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.
-/**
- * If result is greater than or equal to 2^31, return result -2^32
- *
- * @path ch09/9.5/S9.5_A2.3_T2.js
- * @description Use operator ~
- */
+/*---
+info: If result is greater than or equal to 2^31, return result -2^32
+description: Use operator ~
+---*/
// CHECK#1
if (~2147483647 !== -2147483648) {
@@ -37,4 +35,3 @@ if (~4294967296 !== ~0) {
if (~4294967297 !== ~1) {
$ERROR('#6: ~4294967297 ==== ~1)');
}
-
diff --git a/test/suite/ch09/9.5/S9.5_A3.1_T1.js b/test/suite/ch09/9.5/S9.5_A3.1_T1.js
index ea9cc2048..d334dcc8c 100644
--- a/test/suite/ch09/9.5/S9.5_A3.1_T1.js
+++ b/test/suite/ch09/9.5/S9.5_A3.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 uses ToNumber
- *
- * @path ch09/9.5/S9.5_A3.1_T1.js
- * @description Type(x) is Boolean
- */
+/*---
+info: Operator uses ToNumber
+description: Type(x) is Boolean
+---*/
// CHECK#1
if ((new Boolean(true) << 0) !== 1) {
@@ -17,4 +15,3 @@ if ((new Boolean(true) << 0) !== 1) {
if ((false << 0) !== 0) {
$ERROR('#2: (false << 0) === 0. Actual: ' + ((false << 0)));
}
-
diff --git a/test/suite/ch09/9.5/S9.5_A3.1_T2.js b/test/suite/ch09/9.5/S9.5_A3.1_T2.js
index 0a8769ba8..192569929 100644
--- a/test/suite/ch09/9.5/S9.5_A3.1_T2.js
+++ b/test/suite/ch09/9.5/S9.5_A3.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 uses ToNumber
- *
- * @path ch09/9.5/S9.5_A3.1_T2.js
- * @description Type(x) is Number
- */
+/*---
+info: Operator uses ToNumber
+description: Type(x) is Number
+---*/
// CHECK#1
if ((new Number(1) << 0) !== 1) {
@@ -17,4 +15,3 @@ if ((new Number(1) << 0) !== 1) {
if ((-1.234 << 0) !== -1) {
$ERROR('#2: (-1.234 << 0) === -1. Actual: ' + ((-1.234 << 0)));
}
-
diff --git a/test/suite/ch09/9.5/S9.5_A3.1_T3.js b/test/suite/ch09/9.5/S9.5_A3.1_T3.js
index 5886b0daf..a31cc461f 100644
--- a/test/suite/ch09/9.5/S9.5_A3.1_T3.js
+++ b/test/suite/ch09/9.5/S9.5_A3.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 uses ToNumber
- *
- * @path ch09/9.5/S9.5_A3.1_T3.js
- * @description Type(x) is String
- */
+/*---
+info: Operator uses ToNumber
+description: Type(x) is String
+---*/
// CHECK#1
if ((new String(1) << 0) !== 1) {
@@ -17,4 +15,3 @@ if ((new String(1) << 0) !== 1) {
if (("-1.234" << 0) !== -1) {
$ERROR('#2: ("-1.234" << 0) === -1. Actual: ' + (("-1.234" << 0)));
}
-
diff --git a/test/suite/ch09/9.5/S9.5_A3.1_T4.js b/test/suite/ch09/9.5/S9.5_A3.1_T4.js
index a4a701fc5..700d92f1a 100644
--- a/test/suite/ch09/9.5/S9.5_A3.1_T4.js
+++ b/test/suite/ch09/9.5/S9.5_A3.1_T4.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 uses ToNumber
- *
- * @path ch09/9.5/S9.5_A3.1_T4.js
- * @description Type(x) is Object
- */
+/*---
+info: Operator uses ToNumber
+description: Type(x) is Object
+---*/
//CHECK#1
var object = {valueOf: function() {return 1}};
@@ -76,4 +74,3 @@ catch (e) {
$ERROR('#8.2: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; ~object throw TypeError. Actual: ' + (e));
}
}
-
diff --git a/test/suite/ch09/9.5/S9.5_A3.2_T1.js b/test/suite/ch09/9.5/S9.5_A3.2_T1.js
index 6a53855b4..ce7835362 100644
--- a/test/suite/ch09/9.5/S9.5_A3.2_T1.js
+++ b/test/suite/ch09/9.5/S9.5_A3.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 uses floor, abs
- *
- * @path ch09/9.5/S9.5_A3.2_T1.js
- * @description Use operator <<0
- */
+/*---
+info: Operator uses floor, abs
+description: Use operator <<0
+---*/
// CHECK#1
if ((1.2345 << 0) !== 1) {
@@ -17,4 +15,3 @@ if ((1.2345 << 0) !== 1) {
if ((-5.4321 << 0) !== -5) {
$ERROR('#2: (-5.4321 << 0) === -5. Actual: ' + ((-5.4321 << 0)));
}
-
diff --git a/test/suite/ch09/9.5/S9.5_A3.2_T2.js b/test/suite/ch09/9.5/S9.5_A3.2_T2.js
index 47838f6a1..54245fd8b 100644
--- a/test/suite/ch09/9.5/S9.5_A3.2_T2.js
+++ b/test/suite/ch09/9.5/S9.5_A3.2_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 uses floor, abs
- *
- * @path ch09/9.5/S9.5_A3.2_T2.js
- * @description Use operator ~
- */
+/*---
+info: Operator uses floor, abs
+description: Use operator ~
+---*/
// CHECK#1
if (~1.2345 !== ~1) {
@@ -17,4 +15,3 @@ if (~1.2345 !== ~1) {
if (~-5.4321 !== ~-5) {
$ERROR('#2: ~-5.4321 === ~-5)');
}
-
diff --git a/test/suite/ch09/9.6/S9.6_A1.js b/test/suite/ch09/9.6/S9.6_A1.js
index 6e370541b..d5e13a05c 100644
--- a/test/suite/ch09/9.6/S9.6_A1.js
+++ b/test/suite/ch09/9.6/S9.6_A1.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If value is NaN, +0, -0, +Infinity, or -Infinity, return +0
- *
- * @path ch09/9.6/S9.6_A1.js
- * @description For testing use operator >>>0
- */
+/*---
+info: If value is NaN, +0, -0, +Infinity, or -Infinity, return +0
+description: For testing use operator >>>0
+---*/
// CHECK#1
if ((Number.NaN >>> 0) !== +0) {
@@ -49,6 +47,3 @@ if ((Number.NEGATIVE_INFINITY >>> 0) !== +0) {
} else if (1/(Number.NEGATIVE_INFINITY >>> 0) !== Number.POSITIVE_INFINITY) {
$ERROR("#6.2: (Number.NEGATIVE_INFINITY >>> 0) === +0. Actual: -0");
}
-
-
-
diff --git a/test/suite/ch09/9.6/S9.6_A2.1.js b/test/suite/ch09/9.6/S9.6_A2.1.js
index cc2f38c85..5fc7afe61 100644
--- a/test/suite/ch09/9.6/S9.6_A2.1.js
+++ b/test/suite/ch09/9.6/S9.6_A2.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.
-/**
- * ToUint32 returns values between 0 and 2^32-1
- *
- * @path ch09/9.6/S9.6_A2.1.js
- * @description Converting numbers, which are in\outside of Uint32 scopes, with >>>0 operator
- */
+/*---
+info: ToUint32 returns values between 0 and 2^32-1
+description: >
+ Converting numbers, which are in\outside of Uint32 scopes, with
+ >>>0 operator
+---*/
// CHECK#1
if ((0 >>> 0) !== 0) {
@@ -37,4 +37,3 @@ if ((4294967294 >>> 0) !== 4294967294) {
if ((4294967296 >>> 0) !== 0) {
$ERROR('#6: (4294967296 >>> 0) === 0. Actual: ' + ((4294967296 >>> 0)));
}
-
diff --git a/test/suite/ch09/9.6/S9.6_A2.2.js b/test/suite/ch09/9.6/S9.6_A2.2.js
index 7438cbe95..c4cf17a49 100644
--- a/test/suite/ch09/9.6/S9.6_A2.2.js
+++ b/test/suite/ch09/9.6/S9.6_A2.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.
-/**
- * Compute result modulo 2^32
- *
- * @path ch09/9.6/S9.6_A2.2.js
- * @description Use operator >>>0
- */
+/*---
+info: Compute result modulo 2^32
+description: Use operator >>>0
+---*/
// CHECK#1
if ((-2147483647 >>> 0) !== 2147483649) {
@@ -67,4 +65,3 @@ if ((8589934592 >>> 0) !== 0) {
if ((8589934593 >>> 0) !== 1) {
$ERROR('#12: (8589934593 >>> 0) === 1. Actual: ' + ((8589934593 >>> 0)));
}
-
diff --git a/test/suite/ch09/9.6/S9.6_A3.1_T1.js b/test/suite/ch09/9.6/S9.6_A3.1_T1.js
index d73f715b9..8638903a1 100644
--- a/test/suite/ch09/9.6/S9.6_A3.1_T1.js
+++ b/test/suite/ch09/9.6/S9.6_A3.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 uses ToNumber
- *
- * @path ch09/9.6/S9.6_A3.1_T1.js
- * @description Type(x) is Boolean
- */
+/*---
+info: Operator uses ToNumber
+description: Type(x) is Boolean
+---*/
// CHECK#1
if ((new Boolean(true) >>> 0) !== 1) {
@@ -17,4 +15,3 @@ if ((new Boolean(true) >>> 0) !== 1) {
if ((false >>> 0) !== 0) {
$ERROR('#2: (false >>> 0) === 0. Actual: ' + ((false >>> 0)));
}
-
diff --git a/test/suite/ch09/9.6/S9.6_A3.1_T2.js b/test/suite/ch09/9.6/S9.6_A3.1_T2.js
index 5e99b13b3..3cebc536a 100644
--- a/test/suite/ch09/9.6/S9.6_A3.1_T2.js
+++ b/test/suite/ch09/9.6/S9.6_A3.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 uses ToNumber
- *
- * @path ch09/9.6/S9.6_A3.1_T2.js
- * @description Type(x) is Number
- */
+/*---
+info: Operator uses ToNumber
+description: Type(x) is Number
+---*/
// CHECK#1
if ((new Number(1) >>> 0) !== 1) {
@@ -17,4 +15,3 @@ if ((new Number(1) >>> 0) !== 1) {
if ((-1.234 >>> 0) !== 4294967295) {
$ERROR('#2: (-1.234 >>> 0) === 4294967295. Actual: ' + ((-1.234 >>> 0)));
}
-
diff --git a/test/suite/ch09/9.6/S9.6_A3.1_T3.js b/test/suite/ch09/9.6/S9.6_A3.1_T3.js
index 480ffd0cc..2e5ee393f 100644
--- a/test/suite/ch09/9.6/S9.6_A3.1_T3.js
+++ b/test/suite/ch09/9.6/S9.6_A3.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 uses ToNumber
- *
- * @path ch09/9.6/S9.6_A3.1_T3.js
- * @description Type(x) is String
- */
+/*---
+info: Operator uses ToNumber
+description: Type(x) is String
+---*/
// CHECK#1
if ((new String(1) >>> 0) !== 1) {
@@ -17,4 +15,3 @@ if ((new String(1) >>> 0) !== 1) {
if (("-1.234" >>> 0) !== 4294967295) {
$ERROR('#2: ("-1.234" >>> 0) === 4294967295. Actual: ' + (("-1.234" >>> 0)));
}
-
diff --git a/test/suite/ch09/9.6/S9.6_A3.1_T4.js b/test/suite/ch09/9.6/S9.6_A3.1_T4.js
index 65381fd0d..5f59c2dfa 100644
--- a/test/suite/ch09/9.6/S9.6_A3.1_T4.js
+++ b/test/suite/ch09/9.6/S9.6_A3.1_T4.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 uses ToNumber
- *
- * @path ch09/9.6/S9.6_A3.1_T4.js
- * @description Type(x) is Object
- */
+/*---
+info: Operator uses ToNumber
+description: Type(x) is Object
+---*/
//CHECK#1
var object = {valueOf: function() {return 1}};
@@ -76,4 +74,3 @@ catch (e) {
$ERROR('#8.2: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; object throw TypeError. Actual: ' + (e));
}
}
-
diff --git a/test/suite/ch09/9.6/S9.6_A3.2_T1.js b/test/suite/ch09/9.6/S9.6_A3.2_T1.js
index 87d0b2a84..7ebdf6d08 100644
--- a/test/suite/ch09/9.6/S9.6_A3.2_T1.js
+++ b/test/suite/ch09/9.6/S9.6_A3.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 uses floor, abs
- *
- * @path ch09/9.6/S9.6_A3.2_T1.js
- * @description Use operator >>>0
- */
+/*---
+info: Operator uses floor, abs
+description: Use operator >>>0
+---*/
// CHECK#1
if ((1.2345 >>> 0) !== 1) {
@@ -17,4 +15,3 @@ if ((1.2345 >>> 0) !== 1) {
if ((-5.4321 >>> 0) !== 4294967291) {
$ERROR('#2: (-5.4321 >>> 0) === 4294967291. Actual: ' + ((-5.4321 >>> 0)));
}
-
diff --git a/test/suite/ch09/9.7/S9.7_A1.js b/test/suite/ch09/9.7/S9.7_A1.js
index 443711768..69d733ba8 100644
--- a/test/suite/ch09/9.7/S9.7_A1.js
+++ b/test/suite/ch09/9.7/S9.7_A1.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If value is NaN, +0, -0, +Infinity, or -Infinity, return +0
- *
- * @path ch09/9.7/S9.7_A1.js
- * @description For testing use String.fromCharCode(Number).charCodeAt(0) construction
- */
+/*---
+info: If value is NaN, +0, -0, +Infinity, or -Infinity, return +0
+description: >
+ For testing use String.fromCharCode(Number).charCodeAt(0)
+ construction
+---*/
// CHECK#1
if (String.fromCharCode(Number.NaN).charCodeAt(0) !== +0) {
@@ -49,6 +49,3 @@ if (String.fromCharCode(Number.NEGATIVE_INFINITY).charCodeAt(0) !== +0) {
} else if (1/String.fromCharCode(Number.NEGATIVE_INFINITY).charCodeAt(0) !== Number.POSITIVE_INFINITY) {
$ERROR("#6.2: String.fromCharCode(Number.NEGATIVE_INFINITY).charCodeAt(0) === +0. Actual: -0");
}
-
-
-
diff --git a/test/suite/ch09/9.7/S9.7_A2.1.js b/test/suite/ch09/9.7/S9.7_A2.1.js
index 5073f9c87..ab8a529b1 100644
--- a/test/suite/ch09/9.7/S9.7_A2.1.js
+++ b/test/suite/ch09/9.7/S9.7_A2.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.
-/**
- * ToUint16 returns values between 0 and 2^16-1
- *
- * @path ch09/9.7/S9.7_A2.1.js
- * @description Converting numbers, which are in\outside of Uint16 scopes, with String.fromCharCode(Number).charCodeAt(0) construction
- */
+/*---
+info: ToUint16 returns values between 0 and 2^16-1
+description: >
+ Converting numbers, which are in\outside of Uint16 scopes, with
+ String.fromCharCode(Number).charCodeAt(0) construction
+---*/
// CHECK#1
if (String.fromCharCode(0).charCodeAt(0) !== 0) {
@@ -52,4 +52,3 @@ if (String.fromCharCode(4294967294).charCodeAt(0) !== 65534) {
if (String.fromCharCode(4294967296).charCodeAt(0) !== 0) {
$ERROR('#9: String.fromCharCode(4294967296).charCodeAt(0) === 0. Actual: ' + (String.fromCharCode(4294967296).charCodeAt(0)));
}
-
diff --git a/test/suite/ch09/9.7/S9.7_A2.2.js b/test/suite/ch09/9.7/S9.7_A2.2.js
index d631bd912..9121ea57b 100644
--- a/test/suite/ch09/9.7/S9.7_A2.2.js
+++ b/test/suite/ch09/9.7/S9.7_A2.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.
-/**
- * Compute result modulo 2^16
- *
- * @path ch09/9.7/S9.7_A2.2.js
- * @description For testing use String.fromCharCode(Number).charCodeAt(0) construction
- */
+/*---
+info: Compute result modulo 2^16
+description: >
+ For testing use String.fromCharCode(Number).charCodeAt(0)
+ construction
+---*/
// CHECK#1
if (String.fromCharCode(-32767).charCodeAt(0) !== 32769) {
@@ -67,4 +67,3 @@ if (String.fromCharCode(131072).charCodeAt(0) !== 0) {
if (String.fromCharCode(131073).charCodeAt(0) !== 1) {
$ERROR('#12: String.fromCharCode(131073).charCodeAt(0) === 1. Actual: ' + (String.fromCharCode(131073).charCodeAt(0)));
}
-
diff --git a/test/suite/ch09/9.7/S9.7_A3.1_T1.js b/test/suite/ch09/9.7/S9.7_A3.1_T1.js
index 315b133d2..7af4349f1 100644
--- a/test/suite/ch09/9.7/S9.7_A3.1_T1.js
+++ b/test/suite/ch09/9.7/S9.7_A3.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 uses ToNumber
- *
- * @path ch09/9.7/S9.7_A3.1_T1.js
- * @description Type(x) is Boolean
- */
+/*---
+info: Operator uses ToNumber
+description: Type(x) is Boolean
+---*/
// CHECK#1
if (String.fromCharCode(new Boolean(true)).charCodeAt(0) !== 1) {
@@ -17,4 +15,3 @@ if (String.fromCharCode(new Boolean(true)).charCodeAt(0) !== 1) {
if (String.fromCharCode(false).charCodeAt(0) !== 0) {
$ERROR('#2: String.fromCharCode(false).charCodeAt(0) === 0. Actual: ' + (String.fromCharCode(false).charCodeAt(0)));
}
-
diff --git a/test/suite/ch09/9.7/S9.7_A3.1_T2.js b/test/suite/ch09/9.7/S9.7_A3.1_T2.js
index 613229333..f8980d42a 100644
--- a/test/suite/ch09/9.7/S9.7_A3.1_T2.js
+++ b/test/suite/ch09/9.7/S9.7_A3.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 uses ToNumber
- *
- * @path ch09/9.7/S9.7_A3.1_T2.js
- * @description Type(x) is Number
- */
+/*---
+info: Operator uses ToNumber
+description: Type(x) is Number
+---*/
// CHECK#1
if (String.fromCharCode(new Number(1)).charCodeAt(0) !== 1) {
@@ -17,4 +15,3 @@ if (String.fromCharCode(new Number(1)).charCodeAt(0) !== 1) {
if (String.fromCharCode(-1.234).charCodeAt(0) !== 65535) {
$ERROR('#2: String.fromCharCode(-1.234).charCodeAt(0) === 65535. Actual: ' + (String.fromCharCode(-1.234).charCodeAt(0)));
}
-
diff --git a/test/suite/ch09/9.7/S9.7_A3.1_T3.js b/test/suite/ch09/9.7/S9.7_A3.1_T3.js
index ff66475ca..f7da03f4b 100644
--- a/test/suite/ch09/9.7/S9.7_A3.1_T3.js
+++ b/test/suite/ch09/9.7/S9.7_A3.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 uses ToNumber
- *
- * @path ch09/9.7/S9.7_A3.1_T3.js
- * @description Type(x) is String
- */
+/*---
+info: Operator uses ToNumber
+description: Type(x) is String
+---*/
// CHECK#1
if (String.fromCharCode(new String(1)).charCodeAt(0) !== 1) {
@@ -17,4 +15,3 @@ if (String.fromCharCode(new String(1)).charCodeAt(0) !== 1) {
if (String.fromCharCode("-1.234").charCodeAt(0) !== 65535) {
$ERROR('#2: String.fromCharCode("-1.234").charCodeAt(0) === 65535. Actual: ' + (String.fromCharCode("-1.234").charCodeAt(0)));
}
-
diff --git a/test/suite/ch09/9.7/S9.7_A3.1_T4.js b/test/suite/ch09/9.7/S9.7_A3.1_T4.js
index 49627e759..5aa116548 100644
--- a/test/suite/ch09/9.7/S9.7_A3.1_T4.js
+++ b/test/suite/ch09/9.7/S9.7_A3.1_T4.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 uses ToNumber
- *
- * @path ch09/9.7/S9.7_A3.1_T4.js
- * @description Type(x) is Object
- */
+/*---
+info: Operator uses ToNumber
+description: Type(x) is Object
+---*/
//CHECK#1
var object = {valueOf: function() {return 1}};
@@ -76,4 +74,3 @@ catch (e) {
$ERROR('#8.2: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; object throw TypeError. Actual: ' + (e));
}
}
-
diff --git a/test/suite/ch09/9.7/S9.7_A3.2_T1.js b/test/suite/ch09/9.7/S9.7_A3.2_T1.js
index b7b6ecbbe..31c475d83 100644
--- a/test/suite/ch09/9.7/S9.7_A3.2_T1.js
+++ b/test/suite/ch09/9.7/S9.7_A3.2_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.
-/**
- * Operator uses floor, abs
- *
- * @path ch09/9.7/S9.7_A3.2_T1.js
- * @description For testing use String.fromCharCode(Number).charCodeAt(0) construction
- */
+/*---
+info: Operator uses floor, abs
+description: >
+ For testing use String.fromCharCode(Number).charCodeAt(0)
+ construction
+---*/
// CHECK#1
if (String.fromCharCode(1.2345).charCodeAt(0) !== 1) {
@@ -17,4 +17,3 @@ if (String.fromCharCode(1.2345).charCodeAt(0) !== 1) {
if (String.fromCharCode(-5.4321).charCodeAt(0) !== 65531) {
$ERROR('#2: String.fromCharCode(-5.4321).charCodeAt(0) === 65531. Actual: ' + (String.fromCharCode(-5.4321).charCodeAt(0)));
}
-
diff --git a/test/suite/ch09/9.8/9.8.1/S9.8.1_A1.js b/test/suite/ch09/9.8/9.8.1/S9.8.1_A1.js
index b51e4cca1..df5ae0ac1 100644
--- a/test/suite/ch09/9.8/9.8.1/S9.8.1_A1.js
+++ b/test/suite/ch09/9.8/9.8.1/S9.8.1_A1.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If m is NaN, return the string "NaN"
- *
- * @path ch09/9.8/9.8.1/S9.8.1_A1.js
- * @description NaN convert to String by explicit transformation
- */
+/*---
+info: If m is NaN, return the string "NaN"
+description: NaN convert to String by explicit transformation
+---*/
// CHECK#1
if (String(NaN) !== "NaN") {
@@ -22,4 +20,3 @@ if (String(Number.NaN) !== "NaN") {
if (String(Number("asasa")) !== "NaN") {
$ERROR('#3: String(Number("asasa")) === Not-a-Number Actual: ' + (String(Number("asasa"))));
}
-
diff --git a/test/suite/ch09/9.8/9.8.1/S9.8.1_A10.js b/test/suite/ch09/9.8/9.8.1/S9.8.1_A10.js
index 17fa40697..e397e876e 100644
--- a/test/suite/ch09/9.8/9.8.1/S9.8.1_A10.js
+++ b/test/suite/ch09/9.8/9.8.1/S9.8.1_A10.js
@@ -1,17 +1,16 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Return the string consisting of the most significant
- * digit of the decimal representation of s, followed by a decimal point '.',
- * followed by the remaining k-1 digits of the decimal representation of s,
- * followed by the lowercase character 'e', followed by a plus sign '+' or
- * minus sign '-' according to whether n-1 is positive or negative, followed
- * by the decimal representation of the integer abs(n-1) (with no leading zeros)
- *
- * @path ch09/9.8/9.8.1/S9.8.1_A10.js
- * @description Various float numbers convert to String by explicit transformation
- */
+/*---
+info: >
+ Return the string consisting of the most significant
+ digit of the decimal representation of s, followed by a decimal point '.',
+ followed by the remaining k-1 digits of the decimal representation of s,
+ followed by the lowercase character 'e', followed by a plus sign '+' or
+ minus sign '-' according to whether n-1 is positive or negative, followed
+ by the decimal representation of the integer abs(n-1) (with no leading zeros)
+description: Various float numbers convert to String by explicit transformation
+---*/
// CHECK#1
if (String(1.2345) !== "1.2345") {
@@ -57,4 +56,3 @@ if (String(.0000012345) !== "0.0000012345") {
if (String(.00000012345) !== "1.2345e-7") {
$ERROR('#9: String(.00000012345) === "1.2345e-7". Actual: ' + (String(.00000012345)));
}
-
diff --git a/test/suite/ch09/9.8/9.8.1/S9.8.1_A2.js b/test/suite/ch09/9.8/9.8.1/S9.8.1_A2.js
index adc8e1f5e..74bd079f3 100644
--- a/test/suite/ch09/9.8/9.8.1/S9.8.1_A2.js
+++ b/test/suite/ch09/9.8/9.8.1/S9.8.1_A2.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If m is +0 or -0, return the string "0"
- *
- * @path ch09/9.8/9.8.1/S9.8.1_A2.js
- * @description +0 and -0 convert to String by explicit transformation
- */
+/*---
+info: If m is +0 or -0, return the string "0"
+description: +0 and -0 convert to String by explicit transformation
+---*/
// CHECK#1
if (String(+0) !== "0") {
@@ -17,4 +15,3 @@ if (String(+0) !== "0") {
if (String(-0) !== "0") {
$ERROR('#2: String(-0) === "0". Actual: ' + (String(-0)));
}
-
diff --git a/test/suite/ch09/9.8/9.8.1/S9.8.1_A3.js b/test/suite/ch09/9.8/9.8.1/S9.8.1_A3.js
index 3945f2279..4dfc646c7 100644
--- a/test/suite/ch09/9.8/9.8.1/S9.8.1_A3.js
+++ b/test/suite/ch09/9.8/9.8.1/S9.8.1_A3.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If m is less than zero, return the string concatenation of the
- * string "-" and ToString(-m)
- *
- * @path ch09/9.8/9.8.1/S9.8.1_A3.js
- * @description -1234567890 convert to String by explicit transformation
- */
+/*---
+info: >
+ If m is less than zero, return the string concatenation of the
+ string "-" and ToString(-m)
+description: -1234567890 convert to String by explicit transformation
+---*/
// CHECK#1
if (String(-1234567890) !== "-1234567890") {
@@ -18,4 +17,3 @@ if (String(-1234567890) !== "-1234567890") {
if ("-"+String(-(-1234567890)) !== "-1234567890") {
$ERROR('#2: "-"+String(-(-1234567890)) === "-1234567890". Actual: ' + ("-"+String(-(-1234567890))));
}
-
diff --git a/test/suite/ch09/9.8/9.8.1/S9.8.1_A4.js b/test/suite/ch09/9.8/9.8.1/S9.8.1_A4.js
index f71ac7557..65bb144ad 100644
--- a/test/suite/ch09/9.8/9.8.1/S9.8.1_A4.js
+++ b/test/suite/ch09/9.8/9.8.1/S9.8.1_A4.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If m is infinity, return the string "Infinity"
- *
- * @path ch09/9.8/9.8.1/S9.8.1_A4.js
- * @description +/-Infinity convert to String by explicit transformation
- */
+/*---
+info: If m is infinity, return the string "Infinity"
+description: +/-Infinity convert to String by explicit transformation
+---*/
// CHECK#1
if (String(Infinity) !== "Infinity") {
@@ -27,4 +25,3 @@ if (String(-Infinity) !== "-Infinity") {
if (String(Number.NEGATIVE_INFINITY) !== "-Infinity") {
$ERROR('#4: String(Number.NEGATIVE_INFINITY) === "-Infinity". Actual: ' + (String(Number.NEGATIVE_INFINITY)));
}
-
diff --git a/test/suite/ch09/9.8/9.8.1/S9.8.1_A6.js b/test/suite/ch09/9.8/9.8.1/S9.8.1_A6.js
index 8b9ddf42e..c1c8a714d 100644
--- a/test/suite/ch09/9.8/9.8.1/S9.8.1_A6.js
+++ b/test/suite/ch09/9.8/9.8.1/S9.8.1_A6.js
@@ -1,14 +1,15 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If 1 <= s < 1e21 or -1e21 s < -1, return the string
- * consisting of the k digits of the decimal representation of s (in order,
- * with no leading zeroes), followed by n-k occurrences of the character '0'
- *
- * @path ch09/9.8/9.8.1/S9.8.1_A6.js
- * @description Various integer numbers convert to String by explicit transformation
- */
+/*---
+info: >
+ If 1 <= s < 1e21 or -1e21 s < -1, return the string
+ consisting of the k digits of the decimal representation of s (in order,
+ with no leading zeroes), followed by n-k occurrences of the character '0'
+description: >
+ Various integer numbers convert to String by explicit
+ transformation
+---*/
// CHECK#1
if (String(1) !== "1") {
@@ -89,5 +90,3 @@ if (String(1E20) !== "100000000000000000000") {
if (String(-1E20) !== "-100000000000000000000") {
$ERROR('#15: String(-1E20) === "-100000000000000000000". Actual: ' + (String(-1E20)));
}
-
-
diff --git a/test/suite/ch09/9.8/9.8.1/S9.8.1_A7.js b/test/suite/ch09/9.8/9.8.1/S9.8.1_A7.js
index 5ad14c25d..506d362e6 100644
--- a/test/suite/ch09/9.8/9.8.1/S9.8.1_A7.js
+++ b/test/suite/ch09/9.8/9.8.1/S9.8.1_A7.js
@@ -1,15 +1,16 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If 1 <= s < 1e21 or -1e21 s < -1 and s has a fractional
- * component, return the string consisting of the most significant n digits of
- * the decimal representation of s, followed by a decimal point '.',
- * followed by the remaining k-n digits of the decimal representation of s
- *
- * @path ch09/9.8/9.8.1/S9.8.1_A7.js
- * @description 1.0000001 and -1.0000001 convert to String by explicit transformation
- */
+/*---
+info: >
+ If 1 <= s < 1e21 or -1e21 s < -1 and s has a fractional
+ component, return the string consisting of the most significant n digits of
+ the decimal representation of s, followed by a decimal point '.',
+ followed by the remaining k-n digits of the decimal representation of s
+description: >
+ 1.0000001 and -1.0000001 convert to String by explicit
+ transformation
+---*/
// CHECK#1
if (String(1.0000001) !== "1.0000001") {
@@ -20,4 +21,3 @@ if (String(1.0000001) !== "1.0000001") {
if (String(-1.0000001) !== "-1.0000001") {
$ERROR('#2: String(-1.0000001) === "-1.0000001". Actual: ' + (String(-1.0000001)));
}
-
diff --git a/test/suite/ch09/9.8/9.8.1/S9.8.1_A8.js b/test/suite/ch09/9.8/9.8.1/S9.8.1_A8.js
index 91efe0b52..9132dd96f 100644
--- a/test/suite/ch09/9.8/9.8.1/S9.8.1_A8.js
+++ b/test/suite/ch09/9.8/9.8.1/S9.8.1_A8.js
@@ -1,15 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If 1 > s > -1, and -6 < n <= 0, return the string consisting of the
- * character '0', followed by a decimal point '.', followed by -n occurrences
- * of the character '0', followed by the k digits of the decimal
- * representation of s
- *
- * @path ch09/9.8/9.8.1/S9.8.1_A8.js
- * @description Various float numbers convert to String by explicit transformation
- */
+/*---
+info: >
+ If 1 > s > -1, and -6 < n <= 0, return the string consisting of the
+ character '0', followed by a decimal point '.', followed by -n occurrences
+ of the character '0', followed by the k digits of the decimal
+ representation of s
+description: Various float numbers convert to String by explicit transformation
+---*/
// CHECK#1
if (String(0.1) !== "0.1") {
@@ -50,5 +49,3 @@ if (String(-1e-6) !== "-0.000001") {
if (String(-1E-6) !== "-0.000001") {
$ERROR('#8: String(-1E-6) === "0.000001". Actual: ' + (String(-1E-6)));
}
-
-
diff --git a/test/suite/ch09/9.8/9.8.1/S9.8.1_A9_T1.js b/test/suite/ch09/9.8/9.8.1/S9.8.1_A9_T1.js
index d4614194b..e52a49b68 100644
--- a/test/suite/ch09/9.8/9.8.1/S9.8.1_A9_T1.js
+++ b/test/suite/ch09/9.8/9.8.1/S9.8.1_A9_T1.js
@@ -1,15 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Return the string consisting of the single digit of s,
- * followed by lowercase character 'e', followed by a plus sign '+' or minus
- * sign '-' according to whether n-1 is positive or negative, followed by the
- * decimal representation of the integer abs(n-1) (with no leading zeros)
- *
- * @path ch09/9.8/9.8.1/S9.8.1_A9_T1.js
- * @description Various big numbers convert to String by explicit transformation
- */
+/*---
+info: >
+ Return the string consisting of the single digit of s,
+ followed by lowercase character 'e', followed by a plus sign '+' or minus
+ sign '-' according to whether n-1 is positive or negative, followed by the
+ decimal representation of the integer abs(n-1) (with no leading zeros)
+description: Various big numbers convert to String by explicit transformation
+---*/
// CHECK#1
if (String(1000000000000000000000) !== "1e+21") {
@@ -70,4 +69,3 @@ if (String(-1E21) !== "-1e+21") {
if (String(-1.0E22) !== "-1e+22") {
$ERROR('#12: String(-1.0E22) === "-1e+22". Actual: ' + (String(-1.0E22)));
}
-
diff --git a/test/suite/ch09/9.8/9.8.1/S9.8.1_A9_T2.js b/test/suite/ch09/9.8/9.8.1/S9.8.1_A9_T2.js
index 79ca7873e..ea211313d 100644
--- a/test/suite/ch09/9.8/9.8.1/S9.8.1_A9_T2.js
+++ b/test/suite/ch09/9.8/9.8.1/S9.8.1_A9_T2.js
@@ -1,15 +1,16 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Return the string consisting of the single digit of s,
- * followed by lowercase character 'e', followed by a plus sign '+' or minus
- * sign '-' according to whether n-1 is positive or negative, followed by the
- * decimal representation of the integer abs(n-1) (with no leading zeros)
- *
- * @path ch09/9.8/9.8.1/S9.8.1_A9_T2.js
- * @description Various float numbers with many zeros convert to String by explicit transformation
- */
+/*---
+info: >
+ Return the string consisting of the single digit of s,
+ followed by lowercase character 'e', followed by a plus sign '+' or minus
+ sign '-' according to whether n-1 is positive or negative, followed by the
+ decimal representation of the integer abs(n-1) (with no leading zeros)
+description: >
+ Various float numbers with many zeros convert to String by
+ explicit transformation
+---*/
// CHECK#1
if (String(0.0000001) !== "1e-7") {
@@ -70,4 +71,3 @@ if (String(-1E-7) !== "-1e-7") {
if (String(-1.0E-10) !== "-1e-10") {
$ERROR('#12: String(-1.0E-10) === "-1e-10". Actual: ' + (String(-1.0E-10)));
}
-
diff --git a/test/suite/ch09/9.8/S9.8_A1_T1.js b/test/suite/ch09/9.8/S9.8_A1_T1.js
index efce3a546..5623aa37f 100644
--- a/test/suite/ch09/9.8/S9.8_A1_T1.js
+++ b/test/suite/ch09/9.8/S9.8_A1_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.
-/**
- * Result of ToString conversion from undefined value is "undefined"
- *
- * @path ch09/9.8/S9.8_A1_T1.js
- * @description Undefined values is undefined, void 0 and eval("var x"). Use explicit transformation
- */
+/*---
+info: Result of ToString conversion from undefined value is "undefined"
+description: >
+ Undefined values is undefined, void 0 and eval("var x"). Use
+ explicit transformation
+---*/
// CHECK#1
if (String(undefined) !== "undefined") {
@@ -22,4 +22,3 @@ if (String(void 0) !== "undefined") {
if (String(eval("var x")) !== "undefined") {
$ERROR('#3: String(eval("var x")) === "undefined" . Actual: ' + (String(eval("var x"))));
}
-
diff --git a/test/suite/ch09/9.8/S9.8_A1_T2.js b/test/suite/ch09/9.8/S9.8_A1_T2.js
index dd26c11b4..0e639f25c 100644
--- a/test/suite/ch09/9.8/S9.8_A1_T2.js
+++ b/test/suite/ch09/9.8/S9.8_A1_T2.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.
-/**
- * Result of ToString conversion from undefined value is "undefined"
- *
- * @path ch09/9.8/S9.8_A1_T2.js
- * @description Undefined values is undefined, void 0 and eval("var x"). Use implicit transformation
- */
+/*---
+info: Result of ToString conversion from undefined value is "undefined"
+description: >
+ Undefined values is undefined, void 0 and eval("var x"). Use
+ implicit transformation
+---*/
// CHECK#1
if (undefined + "" !== "undefined") {
@@ -22,4 +22,3 @@ if (void 0 + "" !== "undefined") {
if (eval("var x") + "" !== "undefined") {
$ERROR('#3: eval("var x") + "" === "undefined". Actual: ' + (eval("var x") + ""));
}
-
diff --git a/test/suite/ch09/9.8/S9.8_A2_T1.js b/test/suite/ch09/9.8/S9.8_A2_T1.js
index 0a1b982b7..5e309553f 100644
--- a/test/suite/ch09/9.8/S9.8_A2_T1.js
+++ b/test/suite/ch09/9.8/S9.8_A2_T1.js
@@ -1,15 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Result of ToString conversion from null value is "null"
- *
- * @path ch09/9.8/S9.8_A2_T1.js
- * @description null convert to String by explicit transformation
- */
+/*---
+info: Result of ToString conversion from null value is "null"
+description: null convert to String by explicit transformation
+---*/
// CHECK#1
if (String(null) !== "null") {
$ERROR('#1: String(null) === "null". Actual: ' + (String(null)));
-}
-
+}
diff --git a/test/suite/ch09/9.8/S9.8_A2_T2.js b/test/suite/ch09/9.8/S9.8_A2_T2.js
index 3b760909b..846477638 100644
--- a/test/suite/ch09/9.8/S9.8_A2_T2.js
+++ b/test/suite/ch09/9.8/S9.8_A2_T2.js
@@ -1,15 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Result of ToString conversion from null value is "null"
- *
- * @path ch09/9.8/S9.8_A2_T2.js
- * @description null convert to String by implicit transformation
- */
+/*---
+info: Result of ToString conversion from null value is "null"
+description: null convert to String by implicit transformation
+---*/
// CHECK#1
if (null + "" !== "null") {
$ERROR('#1: null + "" === "null". Actual: ' + (null + ""));
-}
-
+}
diff --git a/test/suite/ch09/9.8/S9.8_A3_T1.js b/test/suite/ch09/9.8/S9.8_A3_T1.js
index cc267edc8..55d7bc7f9 100644
--- a/test/suite/ch09/9.8/S9.8_A3_T1.js
+++ b/test/suite/ch09/9.8/S9.8_A3_T1.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Result of ToString conversion from boolean value is "true" if
- * the argument is "true", else is "false"
- *
- * @path ch09/9.8/S9.8_A3_T1.js
- * @description True and false convert to String by explicit transformation
- */
+/*---
+info: >
+ Result of ToString conversion from boolean value is "true" if
+ the argument is "true", else is "false"
+description: True and false convert to String by explicit transformation
+---*/
// CHECK#1
if (String(false) !== "false") {
@@ -18,4 +17,3 @@ if (String(false) !== "false") {
if (String(true) !== "true") {
$ERROR('#2: String(true) === "true". Actual: ' + (String(true)));
}
-
diff --git a/test/suite/ch09/9.8/S9.8_A3_T2.js b/test/suite/ch09/9.8/S9.8_A3_T2.js
index 788bcb58d..ca74c57af 100644
--- a/test/suite/ch09/9.8/S9.8_A3_T2.js
+++ b/test/suite/ch09/9.8/S9.8_A3_T2.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Result of ToString conversion from boolean value is "true" if
- * the argument is "true", else is "false"
- *
- * @path ch09/9.8/S9.8_A3_T2.js
- * @description True and false convert to String by implicit transformation
- */
+/*---
+info: >
+ Result of ToString conversion from boolean value is "true" if
+ the argument is "true", else is "false"
+description: True and false convert to String by implicit transformation
+---*/
// CHECK#1
if (false + "" !== "false") {
@@ -18,4 +17,3 @@ if (false + "" !== "false") {
if (true + "" !== "true") {
$ERROR('#2: true + "" === "true". Actual: ' + (true + ""));
}
-
diff --git a/test/suite/ch09/9.8/S9.8_A4_T1.js b/test/suite/ch09/9.8/S9.8_A4_T1.js
index 064458461..bbe3952f1 100644
--- a/test/suite/ch09/9.8/S9.8_A4_T1.js
+++ b/test/suite/ch09/9.8/S9.8_A4_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.
-/**
- * Result of String conversion from string value is the input argument (no conversion)
- *
- * @path ch09/9.8/S9.8_A4_T1.js
- * @description Some strings convert to String with explicit transformation
- */
+/*---
+info: >
+ Result of String conversion from string value is the input argument (no
+ conversion)
+description: Some strings convert to String with explicit transformation
+---*/
// CHECK#1
var x1 = "abc";
@@ -19,4 +19,3 @@ var x2 = "abc";
if (typeof String(x2) !== typeof x2) {
$ERROR('#2: typeof String("abc") === "string". Actual: ' + (typeof String("abc")));
}
-
diff --git a/test/suite/ch09/9.8/S9.8_A4_T2.js b/test/suite/ch09/9.8/S9.8_A4_T2.js
index fdde4c38e..0a2bce555 100644
--- a/test/suite/ch09/9.8/S9.8_A4_T2.js
+++ b/test/suite/ch09/9.8/S9.8_A4_T2.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.
-/**
- * Result of String conversion from string value is the input argument (no conversion)
- *
- * @path ch09/9.8/S9.8_A4_T2.js
- * @description Some strings convert to String by implicit transformation
- */
+/*---
+info: >
+ Result of String conversion from string value is the input argument (no
+ conversion)
+description: Some strings convert to String by implicit transformation
+---*/
// CHECK#1
var x1 = "abc";
@@ -19,4 +19,3 @@ var x2 = "abc";
if (typeof x2 + "" !== typeof x2) {
$ERROR('#2: typeof "abc" + "" === "string". Actual: ' + (typeof "abc" + ""));
}
-
diff --git a/test/suite/ch09/9.8/S9.8_A5_T1.js b/test/suite/ch09/9.8/S9.8_A5_T1.js
index 55d88c102..fe580a351 100644
--- a/test/suite/ch09/9.8/S9.8_A5_T1.js
+++ b/test/suite/ch09/9.8/S9.8_A5_T1.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Result of String conversion from Object value is conversion
- * from primitive value
- *
- * @path ch09/9.8/S9.8_A5_T1.js
- * @description Some objects convert to String by explicit transformation
- */
+/*---
+info: >
+ Result of String conversion from Object value is conversion
+ from primitive value
+description: Some objects convert to String by explicit transformation
+---*/
// CHECK#1
if (String(new Number()) !== "0") {
@@ -90,4 +89,3 @@ var myobj3 = {
if (String(myobj3) !== "[object Object]"){
$ERROR("#13: String(myobj) calls ToPrimitive with hint String");
}
-
diff --git a/test/suite/ch09/9.8/S9.8_A5_T2.js b/test/suite/ch09/9.8/S9.8_A5_T2.js
index 7911adaee..ed5571de5 100644
--- a/test/suite/ch09/9.8/S9.8_A5_T2.js
+++ b/test/suite/ch09/9.8/S9.8_A5_T2.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * Result of String conversion from Object value is conversion
- * from primitive value
- *
- * @path ch09/9.8/S9.8_A5_T2.js
- * @description Some objects convert to String by implicit transformation
- */
+/*---
+info: >
+ Result of String conversion from Object value is conversion
+ from primitive value
+description: Some objects convert to String by implicit transformation
+---*/
// CHECK#1
if (new Number() + "" !== "0") {
@@ -89,4 +88,3 @@ var myobj3 = {
if (myobj3 + "" !== "[object Object]"){
$ERROR('#13: myobj3 + "" calls ToPrimitive with hint Number. Exptected: "[object Object]". Actual: ' + (myobj3 + ""));
}
-
diff --git a/test/suite/ch09/9.9/S9.9_A1.js b/test/suite/ch09/9.9/S9.9_A1.js
index a1d36aabd..0f07a66cd 100644
--- a/test/suite/ch09/9.9/S9.9_A1.js
+++ b/test/suite/ch09/9.9/S9.9_A1.js
@@ -1,13 +1,11 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * ToObject conversion from undefined value must throw TypeError
- *
- * @path ch09/9.9/S9.9_A1.js
- * @description Trying to convert undefined to Object
- * @noStrict
- */
+/*---
+info: ToObject conversion from undefined value must throw TypeError
+description: Trying to convert undefined to Object
+flags: [noStrict]
+---*/
// CHECK#1
try{
@@ -30,4 +28,3 @@ catch(e){
$ERROR('#2.2: with(undefined) x = 2 must throw TypeError. Actual: ' + (e));
}
}
-
diff --git a/test/suite/ch09/9.9/S9.9_A2.js b/test/suite/ch09/9.9/S9.9_A2.js
index 42e1980e7..c03a29bc0 100644
--- a/test/suite/ch09/9.9/S9.9_A2.js
+++ b/test/suite/ch09/9.9/S9.9_A2.js
@@ -1,13 +1,11 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * ToObject conversion from null value must throw TypeError
- *
- * @path ch09/9.9/S9.9_A2.js
- * @description Trying to convert null to Object
- * @noStrict
- */
+/*---
+info: ToObject conversion from null value must throw TypeError
+description: Trying to convert null to Object
+flags: [noStrict]
+---*/
// CHECK#1
try{
@@ -30,4 +28,3 @@ catch(e){
$ERROR('#2.2: with(null) x = 2 must throw TypeError. Actual: ' + (e));
}
}
-
diff --git a/test/suite/ch09/9.9/S9.9_A3.js b/test/suite/ch09/9.9/S9.9_A3.js
index f91cd8e82..d20dd7b7a 100644
--- a/test/suite/ch09/9.9/S9.9_A3.js
+++ b/test/suite/ch09/9.9/S9.9_A3.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * ToObject conversion from Boolean: create a new Boolean object
- * whose [[value]] property is set to the value of the boolean
- *
- * @path ch09/9.9/S9.9_A3.js
- * @description Trying to convert from Boolean to Object
- */
+/*---
+info: >
+ ToObject conversion from Boolean: create a new Boolean object
+ whose [[value]] property is set to the value of the boolean
+description: Trying to convert from Boolean to Object
+---*/
// CHECK#1
if (Object(true).valueOf() !== true){
@@ -38,4 +37,3 @@ if (typeof Object(false) !== "object"){
if (Object(false).constructor.prototype !== Boolean.prototype){
$ERROR('#6: Object(false).constructor.prototype === Boolean.prototype. Actual: ' + (Object(false).constructor.prototype));
}
-
diff --git a/test/suite/ch09/9.9/S9.9_A4.js b/test/suite/ch09/9.9/S9.9_A4.js
index 2f08bf52c..d046accc6 100644
--- a/test/suite/ch09/9.9/S9.9_A4.js
+++ b/test/suite/ch09/9.9/S9.9_A4.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * ToObject conversion from Number: create a new Number object
- * whose [[value]] property is set to the value of the number
- *
- * @path ch09/9.9/S9.9_A4.js
- * @description Converting from various numbers to Object
- */
+/*---
+info: >
+ ToObject conversion from Number: create a new Number object
+ whose [[value]] property is set to the value of the number
+description: Converting from various numbers to Object
+---*/
// CHECK#1
if (Object(0).valueOf() !== 0){
@@ -175,4 +174,3 @@ if (typeof Object(-1.2345) !== "object"){
if (Object(-1.2345).constructor.prototype !== Number.prototype){
$ERROR('#33: Object(-1.2345).constructor.prototype === Number.prototype. Actual: ' + (Object(-1.2345).constructor.prototype));
}
-
diff --git a/test/suite/ch09/9.9/S9.9_A5.js b/test/suite/ch09/9.9/S9.9_A5.js
index 2f59c1182..ef7054137 100644
--- a/test/suite/ch09/9.9/S9.9_A5.js
+++ b/test/suite/ch09/9.9/S9.9_A5.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * ToObject conversion from String: create a new String object
- * whose [[value]] property is set to the value of the string
- *
- * @path ch09/9.9/S9.9_A5.js
- * @description Converting from various strings to Object
- */
+/*---
+info: >
+ ToObject conversion from String: create a new String object
+ whose [[value]] property is set to the value of the string
+description: Converting from various strings to Object
+---*/
// CHECK#1
if (Object("some string").valueOf() !== "some string"){
@@ -68,4 +67,3 @@ if (typeof Object(String(10)) !== "object"){
if (Object(String(10)).constructor.prototype !== String.prototype){
$ERROR('#12: Object(String(10)).constructor.prototype === String.prototype. Actual: ' + (Object(String(10)).constructor.prototype));
}
-
diff --git a/test/suite/ch09/9.9/S9.9_A6.js b/test/suite/ch09/9.9/S9.9_A6.js
index a25679016..1660caefa 100644
--- a/test/suite/ch09/9.9/S9.9_A6.js
+++ b/test/suite/ch09/9.9/S9.9_A6.js
@@ -1,13 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * ToObject conversion from Object: The result is the input
- * argument (no conversion)
- *
- * @path ch09/9.9/S9.9_A6.js
- * @description Converting from Objects to Object
- */
+/*---
+info: >
+ ToObject conversion from Object: The result is the input
+ argument (no conversion)
+description: Converting from Objects to Object
+---*/
function MyObject( val ) {
this.value = val;
@@ -37,4 +36,3 @@ if (y.constructor.prototype !== x.constructor.prototype){
if (y !== x){
$ERROR('#4: Object(obj) === obj');
}
-