aboutsummaryrefslogtreecommitdiffstats
path: root/test/suite/ch15/15.1/15.1.2/15.1.2.2
diff options
context:
space:
mode:
Diffstat (limited to 'test/suite/ch15/15.1/15.1.2/15.1.2.2')
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/15.1.2.2-2-1.js32
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T1.js11
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T2.js13
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T3.js11
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T4.js11
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T5.js11
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T6.js11
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T7.js11
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T1.js11
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T10.js11
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T2.js11
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T3.js11
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T4.js11
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T5.js11
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T6.js11
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T7.js11
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T8.js11
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T9.js11
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T1.js11
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T2.js12
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T3.js11
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T4.js11
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T5.js11
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T6.js11
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T7.js11
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.2_T1.js11
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.2_T2.js11
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.2_T3.js11
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A4.1_T1.js13
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A4.1_T2.js13
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A4.2_T1.js13
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A4.2_T2.js13
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A4.2_T3.js13
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A5.1_T1.js17
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A5.2_T1.js16
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A5.2_T2.js16
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A6.1_T1.js18
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A6.1_T2.js18
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A6.1_T3.js18
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A6.1_T4.js18
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A6.1_T5.js18
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A6.1_T6.js18
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.1_T1.js13
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.1_T2.js13
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.2_T1.js20
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.2_T2.js18
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.2_T3.js18
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.3_T1.js13
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.3_T2.js11
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.3_T3.js11
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A8.js18
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.1.js11
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.2.js14
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.3.js14
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.4.js14
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.5.js11
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.6.js11
-rw-r--r--test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.7.js13
58 files changed, 311 insertions, 466 deletions
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/15.1.2.2-2-1.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/15.1.2.2-2-1.js
index cb072a69a..2822ce056 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/15.1.2.2-2-1.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/15.1.2.2-2-1.js
@@ -1,15 +1,17 @@
-/// Copyright (c) 2012 Ecma International. All rights reserved.
-/// Ecma International makes this code available under the terms and conditions set
-/// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
-/// "Use Terms"). Any redistribution of this code must retain the above
-/// copyright and this notice and otherwise comply with the Use Terms.
-/**
- * @path ch15/15.1/15.1.2/15.1.2.2/15.1.2.2-2-1.js
- * @description pareseInt - 'S' is the empty string when inputString does not contain any such characters
- */
-
-
-function testcase() {
- return isNaN(parseInt("")) && parseInt("") !== parseInt("");
- }
-runTestCase(testcase);
+// Copyright (c) 2012 Ecma International. All rights reserved.
+// Ecma International makes this code available under the terms and conditions set
+// forth on http://hg.ecmascript.org/tests/test262/raw-file/tip/LICENSE (the
+// "Use Terms"). Any redistribution of this code must retain the above
+// copyright and this notice and otherwise comply with the Use Terms.
+
+/*---
+description: >
+ pareseInt - 'S' is the empty string when inputString does not
+ contain any such characters
+includes: [runTestCase.js]
+---*/
+
+function testcase() {
+ return isNaN(parseInt("")) && parseInt("") !== parseInt("");
+ }
+runTestCase(testcase);
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T1.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T1.js
index 364172767..0e122283d 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T1.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_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.
-/**
- * Operator use ToString
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T1.js
- * @description Checking for boolean primitive
- */
+/*---
+info: Operator use ToString
+description: Checking for boolean primitive
+---*/
//CHECK#1
if (!(isNaN(parseInt(true)) && isNaN(parseInt("NaN")))) {
@@ -17,4 +15,3 @@ if (!(isNaN(parseInt(true)) && isNaN(parseInt("NaN")))) {
if (String(parseInt(false)) !== "NaN") {
$ERROR('#2: String(parseInt(false)) === "NaN". Actual: ' + (String(parseInt(false))));
}
-
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T2.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T2.js
index ff5199a07..51c930209 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T2.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_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.
-/**
- * Operator use ToString
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T2.js
- * @description Checking for number primitive
- */
+/*---
+info: Operator use ToString
+description: Checking for number primitive
+---*/
//CHECK#1
if (parseInt(-1) !== parseInt("-1")) {
@@ -30,5 +28,4 @@ if (parseInt(-0) !== 0) {
if (1 / parseInt(-0) !== Number.POSITIVE_INFINITY) {
$ERROR('#4: parseInt(-0) === +0. Actual: ' + (parseInt(-0)));
}
-}
-
+}
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T3.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T3.js
index 8302d3919..89b633ba0 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T3.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_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 use ToString
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T3.js
- * @description Checking for undefined and null
- */
+/*---
+info: Operator use ToString
+description: Checking for undefined and null
+---*/
//CHECK#1
if (!(isNaN(parseInt(undefined)) && isNaN(parseInt("NaN")))) {
@@ -27,4 +25,3 @@ if (String(parseInt(undefined)) !== "NaN") {
if (String(parseInt(null)) !== "NaN") {
$ERROR('#4: String(parseInt(null)) === "NaN". Actual: ' + (String(parseInt(null))));
}
-
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T4.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T4.js
index cb8513d08..9ee8a9be6 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T4.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_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 use ToString
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T4.js
- * @description Checking for Boolean object
- */
+/*---
+info: Operator use ToString
+description: Checking for Boolean object
+---*/
//CHECK#1
if (!(isNaN(parseInt(new Boolean(true))) && isNaN(parseInt("NaN")))) {
@@ -17,4 +15,3 @@ if (!(isNaN(parseInt(new Boolean(true))) && isNaN(parseInt("NaN")))) {
if (String(parseInt(new Boolean(false))) !== "NaN") {
$ERROR('#2: String(parseInt(new Boolean(false))) === "NaN". Actual: ' + (String(parseInt(new Boolean(false)))));
}
-
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T5.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T5.js
index acf3ec140..0c71aebbd 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T5.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T5.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 use ToString
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T5.js
- * @description Checking for Number object
- */
+/*---
+info: Operator use ToString
+description: Checking for Number object
+---*/
//CHECK#1
if (parseInt(new Number(-1)) !== parseInt("-1")) {
@@ -22,4 +20,3 @@ if (String(parseInt(new Number(Infinity))) !== "NaN") {
if (String(parseInt(new Number(NaN))) !== "NaN") {
$ERROR('#3: String(parseInt(new Number(NaN))) === "NaN". Actual: ' + (String(parseInt(new Number(NaN)))));
}
-
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T6.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T6.js
index 459b40fe4..dd6f5555c 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T6.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T6.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 use ToString
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T6.js
- * @description Checking for String object
- */
+/*---
+info: Operator use ToString
+description: Checking for String object
+---*/
//CHECK#1
if (parseInt(new String("-1")) !== parseInt("-1")) {
@@ -27,4 +25,3 @@ if (String(parseInt(new String("NaN"))) !== "NaN") {
if (String(parseInt(new String("false"))) !== "NaN") {
$ERROR('#4: String(parseInt(new String("false"))) === "NaN". Actual: ' + (String(parseInt(new String("false")))));
}
-
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T7.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T7.js
index dee9254f2..dbb6ff7cf 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T7.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T7.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 use ToString
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A1_T7.js
- * @description If Type(value) is Object, evaluate ToPrimitive(value, String)
- */
+/*---
+info: Operator use ToString
+description: If Type(value) is Object, evaluate ToPrimitive(value, String)
+---*/
//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 {}}}; parseInt(object) throw TypeError. Actual: ' + (e));
}
}
-
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T1.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T1.js
index 94d69742c..30dc0a418 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T1.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_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.
-/**
- * Operator remove leading StrWhiteSpaceChar
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T1.js
- * @description StrWhiteSpaceChar :: TAB (U+0009)
- */
+/*---
+info: Operator remove leading StrWhiteSpaceChar
+description: "StrWhiteSpaceChar :: TAB (U+0009)"
+---*/
//CHECK#1
if (parseInt("\u00091") !== parseInt("1")) {
@@ -37,4 +35,3 @@ if (parseInt(" \u0009 \u0009-1") !== parseInt("-1")) {
if (isNaN(parseInt("\u0009")) !== true) {
$ERROR('#6: parseInt("\\u0009") === Not-a-Number. Actual: ' + (parseInt("\u0009")));
}
-
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T10.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T10.js
index f67483443..279e4f12c 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T10.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T10.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 remove leading StrWhiteSpaceChar
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T10.js
- * @description StrWhiteSpaceChar :: USP
- */
+/*---
+info: Operator remove leading StrWhiteSpaceChar
+description: "StrWhiteSpaceChar :: USP"
+---*/
//CHECK#
var count = 0;
@@ -37,4 +35,3 @@ for (var index = 0; index < uspU.length; index++) {
if (errorCount > 0) {
$ERROR('Total error: ' + errorCount + ' bad Unicode character in ' + count);
}
-
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T2.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T2.js
index b7fcfe4da..a6de122d1 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T2.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_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.
-/**
- * Operator remove leading StrWhiteSpaceChar
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T2.js
- * @description StrWhiteSpaceChar :: SP (U+0020)
- */
+/*---
+info: Operator remove leading StrWhiteSpaceChar
+description: "StrWhiteSpaceChar :: SP (U+0020)"
+---*/
//CHECK#1
if (parseInt("\u00201") !== parseInt("1")) {
@@ -37,4 +35,3 @@ if (parseInt(" \u0020 \u0020-1") !== parseInt("-1")) {
if (isNaN(parseInt("\u0020")) !== true) {
$ERROR('#6: parseInt("\\u0020") === Not-a-Number. Actual: ' + (parseInt("\u0020")));
}
-
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T3.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T3.js
index 6cf28d093..ef8baba36 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T3.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_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 remove leading StrWhiteSpaceChar
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T3.js
- * @description StrWhiteSpaceChar :: NBSB (U+00A0)
- */
+/*---
+info: Operator remove leading StrWhiteSpaceChar
+description: "StrWhiteSpaceChar :: NBSB (U+00A0)"
+---*/
//CHECK#1
if (parseInt("\u00A01") !== parseInt("1")) {
@@ -22,4 +20,3 @@ if (parseInt("\u00A0\u00A0-1") !== parseInt("-1")) {
if (isNaN(parseInt("\u00A0")) !== true) {
$ERROR('#3: parseInt("\\u00A0") === Not-a-Number. Actual: ' + (parseInt("\u00A0")));
}
-
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T4.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T4.js
index af48d2f2d..d0169b090 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T4.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_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 remove leading StrWhiteSpaceChar
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T4.js
- * @description StrWhiteSpaceChar :: FF (U+000C)
- */
+/*---
+info: Operator remove leading StrWhiteSpaceChar
+description: "StrWhiteSpaceChar :: FF (U+000C)"
+---*/
//CHECK#1
if (parseInt("\u000C1") !== parseInt("1")) {
@@ -22,4 +20,3 @@ if (parseInt("\u000C\u000C-1") !== parseInt("-1")) {
if (isNaN(parseInt("\u000C")) !== true) {
$ERROR('#3: parseInt("\\u000C") === Not-a-Number. Actual: ' + (parseInt("\u000C")));
}
-
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T5.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T5.js
index cf937d469..291cb62e4 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T5.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T5.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 remove leading StrWhiteSpaceChar
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T5.js
- * @description StrWhiteSpaceChar :: VT (U+000B)
- */
+/*---
+info: Operator remove leading StrWhiteSpaceChar
+description: "StrWhiteSpaceChar :: VT (U+000B)"
+---*/
//CHECK#1
if (parseInt("\u000B1") !== parseInt("1")) {
@@ -22,4 +20,3 @@ if (parseInt("\u000B\u000B-1") !== parseInt("-1")) {
if (isNaN(parseInt("\u000B")) !== true) {
$ERROR('#3: parseInt("\\u000B") === Not-a-Number. Actual: ' + (parseInt("\u000B")));
}
-
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T6.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T6.js
index 459fe4cbc..1b4627855 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T6.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T6.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 remove leading StrWhiteSpaceChar
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T6.js
- * @description StrWhiteSpaceChar :: CR (U+000D)
- */
+/*---
+info: Operator remove leading StrWhiteSpaceChar
+description: "StrWhiteSpaceChar :: CR (U+000D)"
+---*/
//CHECK#1
if (parseInt("\u000D1") !== parseInt("1")) {
@@ -22,4 +20,3 @@ if (parseInt("\u000D\u000D-1") !== parseInt("-1")) {
if (isNaN(parseInt("\u000D")) !== true) {
$ERROR('#3: parseInt("\\u000D") === Not-a-Number. Actual: ' + (parseInt("\u000D")));
}
-
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T7.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T7.js
index fd49e2b86..6148d8138 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T7.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T7.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 remove leading StrWhiteSpaceChar
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T7.js
- * @description StrWhiteSpaceChar :: LF (U+000A)
- */
+/*---
+info: Operator remove leading StrWhiteSpaceChar
+description: "StrWhiteSpaceChar :: LF (U+000A)"
+---*/
//CHECK#1
if (parseInt("\u000A1") !== parseInt("1")) {
@@ -22,4 +20,3 @@ if (parseInt("\u000A\u000A-1") !== parseInt("-1")) {
if (isNaN(parseInt("\u000A")) !== true) {
$ERROR('#3: parseInt("\\u000A") === Not-a-Number. Actual: ' + (parseInt("\u000A")));
}
-
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T8.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T8.js
index 2ecc4d7b3..183727780 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T8.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T8.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 remove leading StrWhiteSpaceChar
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T8.js
- * @description StrWhiteSpaceChar :: LS (U+2028)
- */
+/*---
+info: Operator remove leading StrWhiteSpaceChar
+description: "StrWhiteSpaceChar :: LS (U+2028)"
+---*/
//CHECK#1
if (parseInt("\u20281") !== parseInt("1")) {
@@ -22,4 +20,3 @@ if (parseInt("\u2028\u2028-1") !== parseInt("-1")) {
if (isNaN(parseInt("\u2028")) !== true) {
$ERROR('#3: parseInt("\\u2028") === Not-a-Number. Actual: ' + (parseInt("\u2028")));
}
-
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T9.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T9.js
index c517c2e8b..5481cf038 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T9.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T9.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 remove leading StrWhiteSpaceChar
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A2_T9.js
- * @description StrWhiteSpaceChar :: PS (U+2029)
- */
+/*---
+info: Operator remove leading StrWhiteSpaceChar
+description: "StrWhiteSpaceChar :: PS (U+2029)"
+---*/
//CHECK#1
if (parseInt("\u20291") !== parseInt("1")) {
@@ -22,4 +20,3 @@ if (parseInt("\u2029\u2029-1") !== parseInt("-1")) {
if (isNaN(parseInt("\u2029")) !== true) {
$ERROR('#3: parseInt("\\u2029") === Not-a-Number. Actual: ' + (parseInt("\u2029")));
}
-
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T1.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T1.js
index 91faff88d..7fb531f6e 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T1.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_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 use ToNumber
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T1.js
- * @description Checking for boolean primitive
- */
+/*---
+info: Operator use ToNumber
+description: Checking for boolean primitive
+---*/
//CHECK#1
if (parseInt("11", false) !== parseInt("11", 10)) {
@@ -17,4 +15,3 @@ if (parseInt("11", false) !== parseInt("11", 10)) {
if (isNaN(parseInt("11", true)) !== true) {
$ERROR('#2: parseInt("11", true) === Not-a-Number. Actual: ' + (parseInt("11", true)));
}
-
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T2.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T2.js
index 3c3d3b170..2e52a810d 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T2.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_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 use ToNumber
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T2.js
- * @description Checking for string primitive
- */
+/*---
+info: Operator use ToNumber
+description: Checking for string primitive
+---*/
//CHECK#1
if (parseInt("11", "2") !== parseInt("11", 2)) {
@@ -22,5 +20,3 @@ if (parseInt("11", "0") !== parseInt("11", 10)) {
if (parseInt("11", "") !== parseInt("11", 10)) {
$ERROR('#3: parseInt("11", "") === parseInt("11", 10). Actual: ' + (parseInt("11", "")));
}
-
-
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T3.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T3.js
index ad0f45f11..3581225d5 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T3.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_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 use ToNumber
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T3.js
- * @description Checking for undefined and null
- */
+/*---
+info: Operator use ToNumber
+description: Checking for undefined and null
+---*/
//CHECK#1
if (parseInt("11", undefined) !== parseInt("11", 10)) {
@@ -17,4 +15,3 @@ if (parseInt("11", undefined) !== parseInt("11", 10)) {
if (parseInt("11", null) !== parseInt("11", 10)) {
$ERROR('#2: parseInt("11", null) === parseInt("11", 10). Actual: ' + (parseInt("11", null)));
}
-
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T4.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T4.js
index 32520b29d..7c9ef1e4d 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T4.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_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 use ToNumber
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T4.js
- * @description Checking for Boolean object
- */
+/*---
+info: Operator use ToNumber
+description: Checking for Boolean object
+---*/
//CHECK#1
if (parseInt("11", new Boolean(false)) !== parseInt("11", false)) {
@@ -17,4 +15,3 @@ if (parseInt("11", new Boolean(false)) !== parseInt("11", false)) {
if (isNaN(parseInt("11", new Boolean(true))) !== true) {
$ERROR('#2: parseInt("11", new Boolean(true)) === Not-a-Number. Actual: ' + (parseInt("11", new Boolean(true))));
}
-
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T5.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T5.js
index cde9f4b12..dbc452b0c 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T5.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T5.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 use ToNumber
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T5.js
- * @description Checking for Number object
- */
+/*---
+info: Operator use ToNumber
+description: Checking for Number object
+---*/
//CHECK#1
if (parseInt("11", new Number(2)) !== parseInt("11", 2)) {
@@ -17,4 +15,3 @@ if (parseInt("11", new Number(2)) !== parseInt("11", 2)) {
if (parseInt("11", new Number(Infinity)) !== parseInt("11", Infinity)) {
$ERROR('#2: parseInt("11", new Number(Infinity)) === parseInt("11", Infinity). Actual: ' + (parseInt("11", new Number(Infinity))));
}
-
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T6.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T6.js
index e3d44183d..d975c4bf2 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T6.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T6.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 use ToNumber
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T6.js
- * @description Checking for String object
- */
+/*---
+info: Operator use ToNumber
+description: Checking for String object
+---*/
//CHECK#1
if (parseInt("11", new String("2")) !== parseInt("11", 2)) {
@@ -17,4 +15,3 @@ if (parseInt("11", new String("2")) !== parseInt("11", 2)) {
if (parseInt("11", new String("Infinity")) !== parseInt("11", Infinity)) {
$ERROR('#2: parseInt("11", new String("Infinity")) === parseInt("11", Infinity). Actual: ' + (parseInt("11", new String("Infinity"))));
}
-
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T7.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T7.js
index 76ab6e050..2173331eb 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T7.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T7.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 use ToNumber
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.1_T7.js
- * @description If Type(value) is Object, evaluate ToPrimitive(value, Number)
- */
+/*---
+info: Operator use ToNumber
+description: If Type(value) is Object, evaluate ToPrimitive(value, Number)
+---*/
//CHECK#1
var object = {valueOf: function() {return 2}};
@@ -76,4 +74,3 @@ catch (e) {
$ERROR('#8.2: var object = {valueOf: function() {return {}}, toString: function() {return {}}}; parseInt("11", object) throw TypeError. Actual: ' + (e));
}
}
-
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.2_T1.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.2_T1.js
index 07b4b17e6..0943689a0 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.2_T1.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_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 use ToInt32
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.2_T1.js
- * @description If radix is NaN, +0, -0, +Infinity, -Infinity, return radix = +0
- */
+/*---
+info: Operator use ToInt32
+description: If radix is NaN, +0, -0, +Infinity, -Infinity, return radix = +0
+---*/
//CHECK#1
if (parseInt("11", NaN) !== parseInt("11", 10)) {
@@ -32,4 +30,3 @@ if (parseInt("11", Number.POSITIVE_INFINITY) !== parseInt("11", 10)) {
if (parseInt("11", Number.NEGATIVE_INFINITY) !== parseInt("11", 10)) {
$ERROR('#5: parseInt("11", Number.NEGATIVE_INFINITY) === parseInt("11", 10). Actual: ' + (parseInt("11", Number.NEGATIVE_INFINITY)));
}
-
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.2_T2.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.2_T2.js
index 9611147b2..29d78bbd6 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.2_T2.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_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 use ToInt32
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.2_T2.js
- * @description ToInt32 use floor
- */
+/*---
+info: Operator use ToInt32
+description: ToInt32 use floor
+---*/
//CHECK#1
if (parseInt("11", 2.1) !== parseInt("11", 2)) {
@@ -32,4 +30,3 @@ if (parseInt("11", 2.000000000001) !== parseInt("11", 2)) {
if (parseInt("11", 2.999999999999) !== parseInt("11", 2)) {
$ERROR('#5: parseInt("11", 2.999999999999) === parseInt("11", 2). Actual: ' + (parseInt("11", 2.999999999999)));
}
-
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.2_T3.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.2_T3.js
index d06fc795f..664dba779 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.2_T3.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.2_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 use ToInt32
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A3.2_T3.js
- * @description ToInt32 use modulo
- */
+/*---
+info: Operator use ToInt32
+description: ToInt32 use modulo
+---*/
//CHECK#1
if (parseInt("11", 4294967298) !== parseInt("11", 2)) {
@@ -27,4 +25,3 @@ if (isNaN(parseInt("11", -2147483650)) !== true) {
if (parseInt("11", -4294967294) !== parseInt("11", 2)) {
$ERROR('#4: parseInt("11", -4294967294) === parseInt("11", 2). Actual: ' + (parseInt("11", -4294967294)));
}
-
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A4.1_T1.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A4.1_T1.js
index 859c1c178..55e756042 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A4.1_T1.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A4.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.
-/**
- * If R = 0 or R = undefined, then R = 10
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A4.1_T1.js
- * @description R = 0
- */
+/*---
+info: If R = 0 or R = undefined, then R = 10
+description: R = 0
+---*/
//CHECK#0
if (parseInt("0", 0) !== parseInt("0", 10)) {
@@ -71,5 +69,4 @@ if (parseInt("11", 0) !== parseInt("11", 10)) {
//CHECK#12
if (parseInt("9999", 0) !== parseInt("9999", 10)) {
$ERROR('#12: parseInt("9999", 0) === parseInt("9999", 10). Actual: ' + (parseInt("9999", 0)));
-}
-
+}
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A4.1_T2.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A4.1_T2.js
index d7e82dcbc..353f53c38 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A4.1_T2.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A4.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.
-/**
- * If R = 0 or R = undefined, then R = 10
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A4.1_T2.js
- * @description R = undefined
- */
+/*---
+info: If R = 0 or R = undefined, then R = 10
+description: R = undefined
+---*/
//CHECK#0
if (parseInt("0") !== parseInt("0", 10)) {
@@ -71,5 +69,4 @@ if (parseInt("11") !== parseInt("11", 10)) {
//CHECK#12
if (parseInt("9999") !== parseInt("9999", 10)) {
$ERROR('#12: parseInt("9999") === parseInt("9999", 10). Actual: ' + (parseInt("9999")));
-}
-
+}
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A4.2_T1.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A4.2_T1.js
index c7b353e5b..310db989f 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A4.2_T1.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A4.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.
-/**
- * If R < 2 or R > 36, then return NaN
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A4.2_T1.js
- * @description R = 1
- */
+/*---
+info: If R < 2 or R > 36, then return NaN
+description: R = 1
+---*/
//CHECK#0
if (isNaN(parseInt("0", 1)) !== true) {
@@ -66,5 +64,4 @@ if (isNaN(parseInt("10", 1)) !== true) {
//CHECK#11
if (isNaN(parseInt("11", 1)) !== true) {
$ERROR('#11: parseInt("11", 1) === Not-a-Number. Actual: ' + (parseInt("11", 1)));
-}
-
+}
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A4.2_T2.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A4.2_T2.js
index 55621e4b0..8c271567b 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A4.2_T2.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A4.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.
-/**
- * If R < 2 or R > 36, then return NaN
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A4.2_T2.js
- * @description R = 37
- */
+/*---
+info: If R < 2 or R > 36, then return NaN
+description: R = 37
+---*/
//CHECK#0
if (isNaN(parseInt("0", 37)) !== true) {
@@ -66,5 +64,4 @@ if (isNaN(parseInt("10", 37)) !== true) {
//CHECK#11
if (isNaN(parseInt("11", 37)) !== true) {
$ERROR('#11: parseInt("11", 37) === Not-a-Number. Actual: ' + (parseInt("11", 37)));
-}
-
+}
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A4.2_T3.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A4.2_T3.js
index 16d554447..8a0a2b4bf 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A4.2_T3.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A4.2_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.
-/**
- * If R < 2 or R > 36, then return NaN
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A4.2_T3.js
- * @description Complex test
- */
+/*---
+info: If R < 2 or R > 36, then return NaN
+description: Complex test
+---*/
//CHECK#
var pow = 2;
@@ -21,5 +19,4 @@ for (var i = 1; i < 32; i++) {
}
}
pow = pow * 2;
-}
-
+}
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A5.1_T1.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A5.1_T1.js
index 541fdd355..b464ee69e 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A5.1_T1.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A5.1_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.
-/**
- * parseInt is no longer allowed to treat a leading zero as indicating
- * octal. "If radix is undefined or 0, it is assumed to be 10 except
- * when the number begins with the character pairs 0x or 0X, in which
- * case a radix of 16 is assumed."
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A5.1_T1.js
- * @description Check if parseInt still accepts octal
- */
+/*---
+info: >
+ parseInt is no longer allowed to treat a leading zero as indicating
+ octal. "If radix is undefined or 0, it is assumed to be 10 except
+ when the number begins with the character pairs 0x or 0X, in which
+ case a radix of 16 is assumed."
+description: Check if parseInt still accepts octal
+---*/
if (parseInt('010') !== 10) {
$ERROR("parseInt should no longer accept octal");
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A5.2_T1.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A5.2_T1.js
index 7d6576d71..02d790588 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A5.2_T1.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A5.2_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.
-/**
- * If the length of S is at least 2 and the first two characters of S
- * are either 0x or 0X, then remove the first two characters from S and let R = 16
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A5.2_T1.js
- * @description : 0x
- */
+/*---
+info: >
+ If the length of S is at least 2 and the first two characters of S
+ are either 0x or 0X, then remove the first two characters from S and let R = 16
+description: ": 0x"
+---*/
//CHECK#0
if (parseInt("0x0", 0) !== parseInt("0", 16)) {
@@ -97,5 +96,4 @@ if (parseInt("0xE", 0) !== parseInt("E", 16)) {
//CHECK#ABCDEF
if (parseInt("0xABCDEF", 0) !== parseInt("ABCDEF", 16)) {
$ERROR('#ABCDEF: parseInt("0xABCDEF", 0) === parseInt("ABCDEF", 16). Actual: ' + (parseInt("0xABCDEF", 0)));
-}
-
+}
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A5.2_T2.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A5.2_T2.js
index 9170b7796..eada11e06 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A5.2_T2.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A5.2_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.
-/**
- * If the length of S is at least 2 and the first two characters of S
- * are either 0x or 0X, then remove the first two characters from S and let R = 16
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A5.2_T2.js
- * @description : 0X
- */
+/*---
+info: >
+ If the length of S is at least 2 and the first two characters of S
+ are either 0x or 0X, then remove the first two characters from S and let R = 16
+description: ": 0X"
+---*/
//CHECK#0
if (parseInt("0X0", 0) !== parseInt("0", 16)) {
@@ -97,5 +96,4 @@ if (parseInt("0XE") !== parseInt("E", 16)) {
//CHECK#ABCDEF
if (parseInt("0XABCDEF") !== parseInt("ABCDEF", 16)) {
$ERROR('#ABCDEF: parseInt("0XABCDEF") === parseInt("ABCDEF", 16). Actual: ' + (parseInt("0XABCDEF")));
-}
-
+}
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A6.1_T1.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A6.1_T1.js
index 2c2e96a5a..020769fcf 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A6.1_T1.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A6.1_T1.js
@@ -1,19 +1,17 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If S contains any character that is not a radix-R digit,
- * then let Z be the substring of S consisting of all characters before
- * the first such character; otherwise, let Z be S
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A6.1_T1.js
- * @description Complex test. R in [2, 36]
- */
+/*---
+info: >
+ If S contains any character that is not a radix-R digit,
+ then let Z be the substring of S consisting of all characters before
+ the first such character; otherwise, let Z be S
+description: Complex test. R in [2, 36]
+---*/
//CHECK#
for (var i = 2; i <= 36; i++) {
if (parseInt("10$1", i) !== i) {
$ERROR('#' + i +': i = ' + i + 'parseInt("10$1", i) === i. Actual: ' + (parseInt("10$1", i)));
}
-}
-
+}
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A6.1_T2.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A6.1_T2.js
index 0fcdb6837..112e8b6ba 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A6.1_T2.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A6.1_T2.js
@@ -1,14 +1,13 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If S contains any character that is not a radix-R digit,
- * then let Z be the substring of S consisting of all characters before
- * the first such character; otherwise, let Z be S
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A6.1_T2.js
- * @description Complex test. Radix-R notation in [0..9, A-Z]
- */
+/*---
+info: >
+ If S contains any character that is not a radix-R digit,
+ then let Z be the substring of S consisting of all characters before
+ the first such character; otherwise, let Z be S
+description: Complex test. Radix-R notation in [0..9, A-Z]
+---*/
//CHECK#
var R_digit = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"];
@@ -16,5 +15,4 @@ for (var i = 2; i <= 36; i++) {
if (parseInt(R_digit[i - 2] + "$", i) !== i - 1) {
$ERROR('#' + i + ': ');
}
-}
-
+}
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A6.1_T3.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A6.1_T3.js
index d559d0675..cdbe4e685 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A6.1_T3.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A6.1_T3.js
@@ -1,14 +1,13 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If S contains any character that is not a radix-R digit,
- * then let Z be the substring of S consisting of all characters before
- * the first such character; otherwise, let Z be S
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A6.1_T3.js
- * @description Complex test. Radix-R notation in [0..9, a-z]
- */
+/*---
+info: >
+ If S contains any character that is not a radix-R digit,
+ then let Z be the substring of S consisting of all characters before
+ the first such character; otherwise, let Z be S
+description: Complex test. Radix-R notation in [0..9, a-z]
+---*/
//CHECK#
var R_digit = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"];
@@ -16,5 +15,4 @@ for (var i = 2; i <= 36; i++) {
if (parseInt(R_digit[i - 2] + "$", i) !== i - 1) {
$ERROR('#' + i + ': ');
}
-}
-
+}
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A6.1_T4.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A6.1_T4.js
index 3b4dc78fa..cf98fa0bc 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A6.1_T4.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A6.1_T4.js
@@ -1,14 +1,13 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If S contains any character that is not a radix-R digit,
- * then let Z be the substring of S consisting of all characters before
- * the first such character; otherwise, let Z be S
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A6.1_T4.js
- * @description Complex test. Radix-R notation in [0..9, A-Z]
- */
+/*---
+info: >
+ If S contains any character that is not a radix-R digit,
+ then let Z be the substring of S consisting of all characters before
+ the first such character; otherwise, let Z be S
+description: Complex test. Radix-R notation in [0..9, A-Z]
+---*/
//CHECK#
var R_digit = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"];
@@ -16,5 +15,4 @@ for (var i = 2; i <= 35; i++) {
if (parseInt(R_digit[i - 2] + R_digit[i - 1], i) !== i - 1) {
$ERROR('#' + i + ': ');
}
-}
-
+}
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A6.1_T5.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A6.1_T5.js
index 86f1fa4c7..6fcb07d4f 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A6.1_T5.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A6.1_T5.js
@@ -1,14 +1,13 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If S contains any character that is not a radix-R digit,
- * then let Z be the substring of S consisting of all characters before
- * the first such character; otherwise, let Z be S
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A6.1_T5.js
- * @description Complex test. Radix-R notation in [0..9, a-z]
- */
+/*---
+info: >
+ If S contains any character that is not a radix-R digit,
+ then let Z be the substring of S consisting of all characters before
+ the first such character; otherwise, let Z be S
+description: Complex test. Radix-R notation in [0..9, a-z]
+---*/
//CHECK#
var R_digit = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"];
@@ -16,5 +15,4 @@ for (var i = 2; i <= 35; i++) {
if (parseInt(R_digit[i - 2] + R_digit[i - 1], i) !== i - 1) {
$ERROR('#' + i + ': ');
}
-}
-
+}
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A6.1_T6.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A6.1_T6.js
index 228408b3b..822f5511c 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A6.1_T6.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A6.1_T6.js
@@ -1,14 +1,13 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If S contains any character that is not a radix-R digit,
- * then let Z be the substring of S consisting of all characters before
- * the first such character; otherwise, let Z be S
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A6.1_T6.js
- * @description Complex test. Radix-R notation in [0..9]
- */
+/*---
+info: >
+ If S contains any character that is not a radix-R digit,
+ then let Z be the substring of S consisting of all characters before
+ the first such character; otherwise, let Z be S
+description: Complex test. Radix-R notation in [0..9]
+---*/
//CHECK#2
if (parseInt("0123456789", 2) !== 1) {
@@ -53,5 +52,4 @@ if (parseInt("01234567890", 9) !== 6053444) {
//CHECK#10
if (parseInt("01234567890", 10) !== Number(1234567890)) {
$ERROR('#10: parseInt("01234567890", 10) === Number(1234567890). Actual: ' + (parseInt("01234567890", 10)));
-}
-
+}
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.1_T1.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.1_T1.js
index f01d60582..11b141abd 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.1_T1.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.1_T1.js
@@ -1,17 +1,14 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * If Z is empty, return NaN
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.1_T1.js
- * @description Complex test. R in [2, 36]
- */
+/*---
+info: If Z is empty, return NaN
+description: Complex test. R in [2, 36]
+---*/
//CHECK#
for (var i = 2; i <= 36; i++) {
if (isNaN(parseInt("$string", i)) !== true) {
$ERROR('#' + i + ': parseInt("$string", i) === Not-a-Number. Actual: ' + (parseInt("$string", i)));
}
-}
-
+}
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.1_T2.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.1_T2.js
index 459097ce4..f4cc16f0d 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.1_T2.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.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.
-/**
- * If Z is empty, return NaN
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.1_T2.js
- * @description x is not a radix-R digit
- */
+/*---
+info: If Z is empty, return NaN
+description: x is not a radix-R digit
+---*/
//CHECK#1
if (isNaN(parseInt("$0x")) !== true) {
@@ -31,5 +29,4 @@ if (isNaN(parseInt("")) !== true) {
//CHECK#5
if (isNaN(parseInt(" ")) !== true) {
$ERROR('#5: parseInt(" ") === Not-a-Number. Actual: ' + (parseInt(" ")));
-}
-
+}
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.2_T1.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.2_T1.js
index 449f85a00..e5b673b53 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.2_T1.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.2_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.
-/**
- * Compute the mathematical integer value
- * that is represented by Z in radix-R notation, using the
- * letters A-Z and a-z for digits with values 10 through 35.
- * Compute the number value for Result(16)
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.2_T1.js
- * @description Complex test. Check algorithm
- */
+/*---
+info: >
+ Compute the mathematical integer value
+ that is represented by Z in radix-R notation, using the
+ letters A-Z and a-z for digits with values 10 through 35.
+ Compute the number value for Result(16)
+description: Complex test. Check algorithm
+---*/
//CHECK#
var R_digit1 = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"];
@@ -33,5 +32,4 @@ for (var i = 2; i <= 36; i++) {
$ERROR('#' + i + '.' + j + ' : ');
}
}
-}
-
+}
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.2_T2.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.2_T2.js
index b11d44293..8dd7f623e 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.2_T2.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.2_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.
-/**
- * Compute the mathematical integer value
- * that is represented by Z in radix-R notation, using the
- * letters A-Z and a-z for digits with values 10 through 35.
- * Compute the number value for Result(16)
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.2_T2.js
- * @description Checking algorithm for R = 2
- */
+/*---
+info: >
+ Compute the mathematical integer value
+ that is represented by Z in radix-R notation, using the
+ letters A-Z and a-z for digits with values 10 through 35.
+ Compute the number value for Result(16)
+description: Checking algorithm for R = 2
+---*/
//CHECK#1
if (parseInt("1", 2) !== 1) {
@@ -110,4 +109,3 @@ if (parseInt("1111111111111111111", 2) !== 524287) {
if (parseInt("11111111111111111111", 2) !== 1048575) {
$ERROR('#20: parseInt("11111111111111111111", 2) === 1048575. Actual: ' + (parseInt("11111111111111111111", 2)));
}
-
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.2_T3.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.2_T3.js
index 77529e11f..643892c2c 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.2_T3.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.2_T3.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.
-/**
- * Compute the mathematical integer value
- * that is represented by Z in radix-R notation, using the
- * letters A-Z and a-z for digits with values 10 through 35.
- * Compute the number value for Result(16)
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.2_T3.js
- * @description Checking algorithm for R = 16
- */
+/*---
+info: >
+ Compute the mathematical integer value
+ that is represented by Z in radix-R notation, using the
+ letters A-Z and a-z for digits with values 10 through 35.
+ Compute the number value for Result(16)
+description: Checking algorithm for R = 16
+---*/
//CHECK#1
if (parseInt("0x1", 16) !== 1) {
@@ -110,4 +109,3 @@ if (parseInt("0x1000000000000000000", 16) !== 4722366482869645213696) {
if (parseInt("0x10000000000000000000", 16) !== 75557863725914323419136) {
$ERROR('#20: parseInt("0x10000000000000000000", 16) === 75557863725914323419136. Actual: ' + (parseInt("0x10000000000000000000", 16)));
}
-
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.3_T1.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.3_T1.js
index c9b796095..89f2a77a0 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.3_T1.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.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.
-/**
- * Return sign * Result(17)
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.3_T1.js
- * @description Complex test. Check algorithm
- */
+/*---
+info: Return sign * Result(17)
+description: Complex test. Check algorithm
+---*/
//CHECK#
var R_digit1 = ["1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"];
@@ -35,5 +33,4 @@ for (var i = 2; i <= 36; i++) {
$ERROR('#' + i + '.' + j + ' : ');
}
}
-}
-
+}
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.3_T2.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.3_T2.js
index de2b297e8..576a16aa9 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.3_T2.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.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.
-/**
- * Return sign * Result(17)
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.3_T2.js
- * @description Checking algorithm for R = 2
- */
+/*---
+info: Return sign * Result(17)
+description: Checking algorithm for R = 2
+---*/
//CHECK#1
if (parseInt("-1", 2) !== -1) {
@@ -107,4 +105,3 @@ if (parseInt("-1111111111111111111", 2) !== -524287) {
if (parseInt("-11111111111111111111", 2) !== -1048575) {
$ERROR('#20: parseInt("-11111111111111111111", 2) === -1048575. Actual: ' + (parseInt("-11111111111111111111", 2)));
}
-
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.3_T3.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.3_T3.js
index aa4ee7ac3..3df1e1acb 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.3_T3.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.3_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.
-/**
- * Return sign * Result(17)
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A7.3_T3.js
- * @description Checking algorithm for R = 10
- */
+/*---
+info: Return sign * Result(17)
+description: Checking algorithm for R = 10
+---*/
//CHECK#1
if (parseInt("-1", 10) !== -1) {
@@ -107,4 +105,3 @@ if (parseInt("-1000000000000000000", 10) !== -1000000000000000000) {
if (parseInt("-10000000000000000000", 10) !== -10000000000000000000) {
$ERROR('#20: parseInt("-10000000000000000000", 10) === -10000000000000000000. Actual: ' + (parseInt("-10000000000000000000", 10)));
}
-
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A8.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A8.js
index 4176800b2..2f38efbe9 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A8.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_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.
-/**
- * parseInt may interpret only a leading portion of the string as
- * a number value; it ignores any characters that cannot be interpreted as part
- * of the notation of an decimal literal, and no indication is given that any such
- * characters were ignored.
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A8.js
- * @description Complex test without eval
- */
+/*---
+info: >
+ parseInt may interpret only a leading portion of the string as
+ a number value; it ignores any characters that cannot be interpreted as part
+ of the notation of an decimal literal, and no indication is given that any such
+ characters were ignored.
+description: Complex test without eval
+---*/
//CHECK
var errorCount = 0;
@@ -80,4 +79,3 @@ function decimalToHexString(n) {
}
return h;
}
-
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.1.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.1.js
index 6b8d9fde0..0918e4aa5 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.1.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.1.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The length property of parseInt has the attribute DontEnum
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.1.js
- * @description Checking use propertyIsEnumerable, for-in
- */
+/*---
+info: The length property of parseInt has the attribute DontEnum
+description: Checking use propertyIsEnumerable, for-in
+---*/
//CHECK#1
if (parseInt.propertyIsEnumerable('length') !== false) {
@@ -24,4 +22,3 @@ for (var p in parseInt){
if (result !== true) {
$ERROR('#2: result = true; for (p in parseInt) { if (p === "length") result = false; } result === true;');
}
-
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.2.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.2.js
index 978e920b5..6b640a962 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.2.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.2.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 length property of parseInt has the attribute DontDelete
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.2.js
- * @description Checking use hasOwnProperty, delete
- * @noStrict
- */
+/*---
+info: The length property of parseInt has the attribute DontDelete
+description: Checking use hasOwnProperty, delete
+flags: [noStrict]
+includes: [$FAIL.js]
+---*/
//CHECK#1
if (parseInt.hasOwnProperty('length') !== true) {
@@ -25,4 +24,3 @@ if (parseInt.hasOwnProperty('length') !== true) {
if (parseInt.length === undefined) {
$ERROR('#3: delete parseInt.length; parseInt.length !== undefined');
}
-
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.3.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.3.js
index dc0a2c522..957670eb3 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.3.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.3.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.
-/**
- * The length property of parseInt has the attribute ReadOnly
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.3.js
- * @description Checking if varying the length property fails
- * @noStrict
- */
+/*---
+info: The length property of parseInt has the attribute ReadOnly
+description: Checking if varying the length property fails
+flags: [noStrict]
+---*/
//CHECK#1
x = parseInt.length;
@@ -15,5 +13,3 @@ parseInt.length = Infinity;
if (parseInt.length !== x) {
$ERROR('#1: x = parseInt.length; parseInt.length = Infinity; parseInt.length === x. Actual: ' + (parseInt.length));
}
-
-
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.4.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.4.js
index f92a64bdb..ead4e410d 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.4.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.4.js
@@ -1,16 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The length property of parseInt is 2
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.4.js
- * @description parseInt.length === 2
- */
+/*---
+info: The length property of parseInt is 2
+description: parseInt.length === 2
+---*/
//CHECK#1
if (parseInt.length !== 2) {
$ERROR('#1: parseInt.length === 2. Actual: ' + (parseInt.length));
-}
-
-
+}
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.5.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.5.js
index 18e6653a2..a01638d73 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.5.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.5.js
@@ -1,12 +1,10 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The parseInt property has the attribute DontEnum
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.5.js
- * @description Checking use propertyIsEnumerable, for-in
- */
+/*---
+info: The parseInt property has the attribute DontEnum
+description: Checking use propertyIsEnumerable, for-in
+---*/
//CHECK#1
if (this.propertyIsEnumerable('parseInt') !== false) {
@@ -24,4 +22,3 @@ for (var p in this){
if (result !== true) {
$ERROR('#2: result = true; for (p in this) { if (p === "parseInt") result = false; } result === true;');
}
-
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.6.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.6.js
index 8fa118ec4..18b504c2a 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.6.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.6.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 parseInt property has not prototype property
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.6.js
- * @description Checking parseInt.prototype
- */
+/*---
+info: The parseInt property has not prototype property
+description: Checking parseInt.prototype
+---*/
//CHECK#1
if (parseInt.prototype !== undefined) {
$ERROR('#1: parseInt.prototype === undefined. Actual: ' + (parseInt.prototype));
}
-
diff --git a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.7.js b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.7.js
index 992aa4e12..6585229ad 100644
--- a/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.7.js
+++ b/test/suite/ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.7.js
@@ -1,12 +1,12 @@
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
-/**
- * The parseInt property can't be used as constructor
- *
- * @path ch15/15.1/15.1.2/15.1.2.2/S15.1.2.2_A9.7.js
- * @description If property does not implement the internal [[Construct]] method, throw a TypeError exception
- */
+/*---
+info: The parseInt property can't be used as constructor
+description: >
+ If property does not implement the internal [[Construct]] method,
+ throw a TypeError exception
+---*/
//CHECK#1
@@ -18,4 +18,3 @@ try {
$ERROR('#1.2: new parseInt() throw TypeError. Actual: ' + (e));
}
}
-