diff options
Diffstat (limited to 'test/built-ins/Number/prototype/toString')
46 files changed, 456 insertions, 428 deletions
diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T01.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T01.js index fb57dde96..7100e7673 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T01.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T01.js @@ -11,41 +11,41 @@ description: undefined radix ---*/ //CHECK#1 -if (Number.prototype.toString() !== "0") { +if(Number.prototype.toString() !== "0"){ $ERROR('#1: Number.prototype.toString() === "0"'); } //CHECK#2 -if ((new Number()).toString() !== "0") { +if((new Number()).toString() !== "0"){ $ERROR('#2: (new Number()).toString() === "0"'); } //CHECK#3 -if ((new Number(0)).toString() !== "0") { +if((new Number(0)).toString() !== "0"){ $ERROR('#3: (new Number(0)).toString() === "0"'); } //CHECK#4 -if ((new Number(-1)).toString() !== "-1") { +if((new Number(-1)).toString() !== "-1"){ $ERROR('#4: (new Number(-1)).toString() === "-1"'); } //CHECK#5 -if ((new Number(1)).toString() !== "1") { +if((new Number(1)).toString() !== "1"){ $ERROR('#5: (new Number(1)).toString() === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString() !== "NaN") { +if((new Number(Number.NaN)).toString() !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString() === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString() !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString() !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString() === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString() !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString() !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString() === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T02.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T02.js index 73b2fb8e9..48f0f4a84 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T02.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T02.js @@ -11,41 +11,41 @@ description: radix is 10 ---*/ //CHECK#1 -if (Number.prototype.toString(10) !== "0") { +if(Number.prototype.toString(10) !== "0"){ $ERROR('#1: Number.prototype.toString(10) === "0"'); } //CHECK#2 -if ((new Number()).toString(10) !== "0") { +if((new Number()).toString(10) !== "0"){ $ERROR('#2: (new Number()).toString(10) === "0"'); } //CHECK#3 -if ((new Number(0)).toString(10) !== "0") { +if((new Number(0)).toString(10) !== "0"){ $ERROR('#3: (new Number(0)).toString(10) === "0"'); } //CHECK#4 -if ((new Number(-1)).toString(10) !== "-1") { +if((new Number(-1)).toString(10) !== "-1"){ $ERROR('#4: (new Number(-1)).toString(10) === "-1"'); } //CHECK#5 -if ((new Number(1)).toString(10) !== "1") { +if((new Number(1)).toString(10) !== "1"){ $ERROR('#5: (new Number(1)).toString(10) === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString(10) !== "NaN") { +if((new Number(Number.NaN)).toString(10) !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString(10) === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString(10) !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString(10) !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(10) === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString(10) !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString(10) !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(10) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T03.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T03.js index 8ed410a74..16c179d44 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T03.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A1_T03.js @@ -11,41 +11,41 @@ description: radix is undefined value ---*/ //CHECK#1 -if (Number.prototype.toString(undefined) !== "0") { +if(Number.prototype.toString(undefined) !== "0"){ $ERROR('#1: Number.prototype.toString(undefined) === "0"'); } //CHECK#2 -if ((new Number()).toString(undefined) !== "0") { +if((new Number()).toString(undefined) !== "0"){ $ERROR('#2: (new Number()).toString(undefined) === "0"'); } //CHECK#3 -if ((new Number(0)).toString(undefined) !== "0") { +if((new Number(0)).toString(undefined) !== "0"){ $ERROR('#3: (new Number(0)).toString(undefined) === "0"'); } //CHECK#4 -if ((new Number(-1)).toString(undefined) !== "-1") { +if((new Number(-1)).toString(undefined) !== "-1"){ $ERROR('#4: (new Number(-1)).toString(undefined) === "-1"'); } //CHECK#5 -if ((new Number(1)).toString(undefined) !== "1") { +if((new Number(1)).toString(undefined) !== "1"){ $ERROR('#5: (new Number(1)).toString(undefined) === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString(undefined) !== "NaN") { +if((new Number(Number.NaN)).toString(undefined) !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString(undefined) === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString(undefined) !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString(undefined) !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(undefined) === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString(undefined) !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString(undefined) !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(undefined) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T01.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T01.js index fd829eee8..20c270d5d 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T01.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T01.js @@ -10,41 +10,41 @@ description: radix is 2 ---*/ //CHECK#1 -if (Number.prototype.toString(2) !== "0") { +if(Number.prototype.toString(2) !== "0"){ $ERROR('#1: Number.prototype.toString(2) === "0"'); } //CHECK#2 -if ((new Number()).toString(2) !== "0") { +if((new Number()).toString(2) !== "0"){ $ERROR('#2: (new Number()).toString(2) === "0"'); } //CHECK#3 -if ((new Number(0)).toString(2) !== "0") { +if((new Number(0)).toString(2) !== "0"){ $ERROR('#3: (new Number(0)).toString(2) === "0"'); } //CHECK#4 -if ((new Number(-1)).toString(2) !== "-1") { +if((new Number(-1)).toString(2) !== "-1"){ $ERROR('#4: (new Number(-1)).toString(2) === "-1"'); } //CHECK#5 -if ((new Number(1)).toString(2) !== "1") { +if((new Number(1)).toString(2) !== "1"){ $ERROR('#5: (new Number(1)).toString(2) === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString(2) !== "NaN") { +if((new Number(Number.NaN)).toString(2) !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString(2) === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString(2) !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString(2) !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(2) === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString(2) !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString(2) !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(2) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T02.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T02.js index 2bf3e565b..2d3d73c36 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T02.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T02.js @@ -10,41 +10,41 @@ description: radix is 3 ---*/ //CHECK#1 -if (Number.prototype.toString(3) !== "0") { +if(Number.prototype.toString(3) !== "0"){ $ERROR('#1: Number.prototype.toString(3) === "0"'); } //CHECK#2 -if ((new Number()).toString(3) !== "0") { +if((new Number()).toString(3) !== "0"){ $ERROR('#2: (new Number()).toString(3) === "0"'); } //CHECK#3 -if ((new Number(0)).toString(3) !== "0") { +if((new Number(0)).toString(3) !== "0"){ $ERROR('#3: (new Number(0)).toString(3) === "0"'); } //CHECK#4 -if ((new Number(-1)).toString(3) !== "-1") { +if((new Number(-1)).toString(3) !== "-1"){ $ERROR('#4: (new Number(-1)).toString(3) === "-1"'); } //CHECK#5 -if ((new Number(1)).toString(3) !== "1") { +if((new Number(1)).toString(3) !== "1"){ $ERROR('#5: (new Number(1)).toString(3) === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString(3) !== "NaN") { +if((new Number(Number.NaN)).toString(3) !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString(3) === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString(3) !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString(3) !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(3) === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString(3) !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString(3) !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(3) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T03.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T03.js index e6f6d98f8..33979bd07 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T03.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T03.js @@ -10,41 +10,41 @@ description: radix is 4 ---*/ //CHECK#1 -if (Number.prototype.toString(4) !== "0") { +if(Number.prototype.toString(4) !== "0"){ $ERROR('#1: Number.prototype.toString(4) === "0"'); } //CHECK#2 -if ((new Number()).toString(4) !== "0") { +if((new Number()).toString(4) !== "0"){ $ERROR('#2: (new Number()).toString(4) === "0"'); } //CHECK#3 -if ((new Number(0)).toString(4) !== "0") { +if((new Number(0)).toString(4) !== "0"){ $ERROR('#3: (new Number(0)).toString(4) === "0"'); } //CHECK#4 -if ((new Number(-1)).toString(4) !== "-1") { +if((new Number(-1)).toString(4) !== "-1"){ $ERROR('#4: (new Number(-1)).toString(4) === "-1"'); } //CHECK#5 -if ((new Number(1)).toString(4) !== "1") { +if((new Number(1)).toString(4) !== "1"){ $ERROR('#5: (new Number(1)).toString(4) === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString(4) !== "NaN") { +if((new Number(Number.NaN)).toString(4) !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString(4) === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString(4) !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString(4) !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(4) === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString(4) !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString(4) !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(4) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T04.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T04.js index d6f7c812d..f1a4eb7f4 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T04.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T04.js @@ -10,41 +10,41 @@ description: radix is 5 ---*/ //CHECK#1 -if (Number.prototype.toString(5) !== "0") { +if(Number.prototype.toString(5) !== "0"){ $ERROR('#1: Number.prototype.toString(5) === "0"'); } //CHECK#2 -if ((new Number()).toString(5) !== "0") { +if((new Number()).toString(5) !== "0"){ $ERROR('#2: (new Number()).toString(5) === "0"'); } //CHECK#3 -if ((new Number(0)).toString(5) !== "0") { +if((new Number(0)).toString(5) !== "0"){ $ERROR('#3: (new Number(0)).toString(5) === "0"'); } //CHECK#4 -if ((new Number(-1)).toString(5) !== "-1") { +if((new Number(-1)).toString(5) !== "-1"){ $ERROR('#4: (new Number(-1)).toString(5) === "-1"'); } //CHECK#5 -if ((new Number(1)).toString(5) !== "1") { +if((new Number(1)).toString(5) !== "1"){ $ERROR('#5: (new Number(1)).toString(5) === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString(5) !== "NaN") { +if((new Number(Number.NaN)).toString(5) !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString(5) === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString(5) !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString(5) !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(5) === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString(5) !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString(5) !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(5) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T05.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T05.js index 80da9e51e..8b9866606 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T05.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T05.js @@ -10,41 +10,41 @@ description: radix is 6 ---*/ //CHECK#1 -if (Number.prototype.toString(6) !== "0") { +if(Number.prototype.toString(6) !== "0"){ $ERROR('#1: Number.prototype.toString(6) === "0"'); } //CHECK#2 -if ((new Number()).toString(6) !== "0") { +if((new Number()).toString(6) !== "0"){ $ERROR('#2: (new Number()).toString(6) === "0"'); } //CHECK#3 -if ((new Number(0)).toString(6) !== "0") { +if((new Number(0)).toString(6) !== "0"){ $ERROR('#3: (new Number(0)).toString(6) === "0"'); } //CHECK#4 -if ((new Number(-1)).toString(6) !== "-1") { +if((new Number(-1)).toString(6) !== "-1"){ $ERROR('#4: (new Number(-1)).toString(6) === "-1"'); } //CHECK#5 -if ((new Number(1)).toString(6) !== "1") { +if((new Number(1)).toString(6) !== "1"){ $ERROR('#5: (new Number(1)).toString(6) === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString(6) !== "NaN") { +if((new Number(Number.NaN)).toString(6) !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString(6) === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString(6) !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString(6) !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(6) === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString(6) !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString(6) !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(6) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T06.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T06.js index aac01ee0a..3422a253c 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T06.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T06.js @@ -10,41 +10,41 @@ description: radix is 7 ---*/ //CHECK#1 -if (Number.prototype.toString(7) !== "0") { +if(Number.prototype.toString(7) !== "0"){ $ERROR('#1: Number.prototype.toString(7) === "0"'); } //CHECK#2 -if ((new Number()).toString(7) !== "0") { +if((new Number()).toString(7) !== "0"){ $ERROR('#2: (new Number()).toString(7) === "0"'); } //CHECK#3 -if ((new Number(0)).toString(7) !== "0") { +if((new Number(0)).toString(7) !== "0"){ $ERROR('#3: (new Number(0)).toString(7) === "0"'); } //CHECK#4 -if ((new Number(-1)).toString(7) !== "-1") { +if((new Number(-1)).toString(7) !== "-1"){ $ERROR('#4: (new Number(-1)).toString(7) === "-1"'); } //CHECK#5 -if ((new Number(1)).toString(7) !== "1") { +if((new Number(1)).toString(7) !== "1"){ $ERROR('#5: (new Number(1)).toString(7) === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString(7) !== "NaN") { +if((new Number(Number.NaN)).toString(7) !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString(7) === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString(7) !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString(7) !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(7) === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString(7) !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString(7) !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(7) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T07.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T07.js index 334a1205f..131adda25 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T07.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T07.js @@ -10,41 +10,41 @@ description: radix is 8 ---*/ //CHECK#1 -if (Number.prototype.toString(8) !== "0") { +if(Number.prototype.toString(8) !== "0"){ $ERROR('#1: Number.prototype.toString(8) === "0"'); } //CHECK#2 -if ((new Number()).toString(8) !== "0") { +if((new Number()).toString(8) !== "0"){ $ERROR('#2: (new Number()).toString(8) === "0"'); } //CHECK#3 -if ((new Number(0)).toString(8) !== "0") { +if((new Number(0)).toString(8) !== "0"){ $ERROR('#3: (new Number(0)).toString(8) === "0"'); } //CHECK#4 -if ((new Number(-1)).toString(8) !== "-1") { +if((new Number(-1)).toString(8) !== "-1"){ $ERROR('#4: (new Number(-1)).toString(8) === "-1"'); } //CHECK#5 -if ((new Number(1)).toString(8) !== "1") { +if((new Number(1)).toString(8) !== "1"){ $ERROR('#5: (new Number(1)).toString(8) === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString(8) !== "NaN") { +if((new Number(Number.NaN)).toString(8) !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString(8) === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString(8) !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString(8) !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(8) === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString(8) !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString(8) !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(8) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T08.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T08.js index 50d674dee..c66838283 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T08.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T08.js @@ -10,41 +10,41 @@ description: radix is 9 ---*/ //CHECK#1 -if (Number.prototype.toString(9) !== "0") { +if(Number.prototype.toString(9) !== "0"){ $ERROR('#1: Number.prototype.toString(9) === "0"'); } //CHECK#2 -if ((new Number()).toString(9) !== "0") { +if((new Number()).toString(9) !== "0"){ $ERROR('#2: (new Number()).toString(9) === "0"'); } //CHECK#3 -if ((new Number(0)).toString(9) !== "0") { +if((new Number(0)).toString(9) !== "0"){ $ERROR('#3: (new Number(0)).toString(9) === "0"'); } //CHECK#4 -if ((new Number(-1)).toString(9) !== "-1") { +if((new Number(-1)).toString(9) !== "-1"){ $ERROR('#4: (new Number(-1)).toString(9) === "-1"'); } //CHECK#5 -if ((new Number(1)).toString(9) !== "1") { +if((new Number(1)).toString(9) !== "1"){ $ERROR('#5: (new Number(1)).toString(9) === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString(9) !== "NaN") { +if((new Number(Number.NaN)).toString(9) !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString(9) === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString(9) !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString(9) !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(9) === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString(9) !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString(9) !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(9) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T09.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T09.js index 98014b16c..e4a090353 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T09.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T09.js @@ -10,41 +10,41 @@ description: radix is 11 ---*/ //CHECK#1 -if (Number.prototype.toString(11) !== "0") { +if(Number.prototype.toString(11) !== "0"){ $ERROR('#1: Number.prototype.toString(11) === "0"'); } //CHECK#2 -if ((new Number()).toString(11) !== "0") { +if((new Number()).toString(11) !== "0"){ $ERROR('#2: (new Number()).toString(11) === "0"'); } //CHECK#3 -if ((new Number(0)).toString(11) !== "0") { +if((new Number(0)).toString(11) !== "0"){ $ERROR('#3: (new Number(0)).toString(11) === "0"'); } //CHECK#4 -if ((new Number(-1)).toString(11) !== "-1") { +if((new Number(-1)).toString(11) !== "-1"){ $ERROR('#4: (new Number(-1)).toString(11) === "-1"'); } //CHECK#5 -if ((new Number(1)).toString(11) !== "1") { +if((new Number(1)).toString(11) !== "1"){ $ERROR('#5: (new Number(1)).toString(11) === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString(11) !== "NaN") { +if((new Number(Number.NaN)).toString(11) !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString(11) === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString(11) !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString(11) !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(11) === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString(11) !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString(11) !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(11) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T10.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T10.js index 6a2f03a54..5804302f3 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T10.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T10.js @@ -10,41 +10,41 @@ description: radix is 12 ---*/ //CHECK#1 -if (Number.prototype.toString(12) !== "0") { +if(Number.prototype.toString(12) !== "0"){ $ERROR('#1: Number.prototype.toString(12) === "0"'); } //CHECK#2 -if ((new Number()).toString(12) !== "0") { +if((new Number()).toString(12) !== "0"){ $ERROR('#2: (new Number()).toString(12) === "0"'); } //CHECK#3 -if ((new Number(0)).toString(12) !== "0") { +if((new Number(0)).toString(12) !== "0"){ $ERROR('#3: (new Number(0)).toString(12) === "0"'); } //CHECK#4 -if ((new Number(-1)).toString(12) !== "-1") { +if((new Number(-1)).toString(12) !== "-1"){ $ERROR('#4: (new Number(-1)).toString(12) === "-1"'); } //CHECK#5 -if ((new Number(1)).toString(12) !== "1") { +if((new Number(1)).toString(12) !== "1"){ $ERROR('#5: (new Number(1)).toString(12) === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString(12) !== "NaN") { +if((new Number(Number.NaN)).toString(12) !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString(12) === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString(12) !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString(12) !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(12) === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString(12) !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString(12) !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(12) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T11.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T11.js index 010360671..277dc3921 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T11.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T11.js @@ -10,41 +10,41 @@ description: radix is 13 ---*/ //CHECK#1 -if (Number.prototype.toString(13) !== "0") { +if(Number.prototype.toString(13) !== "0"){ $ERROR('#1: Number.prototype.toString(13) === "0"'); } //CHECK#2 -if ((new Number()).toString(13) !== "0") { +if((new Number()).toString(13) !== "0"){ $ERROR('#2: (new Number()).toString(13) === "0"'); } //CHECK#3 -if ((new Number(0)).toString(13) !== "0") { +if((new Number(0)).toString(13) !== "0"){ $ERROR('#3: (new Number(0)).toString(13) === "0"'); } //CHECK#4 -if ((new Number(-1)).toString(13) !== "-1") { +if((new Number(-1)).toString(13) !== "-1"){ $ERROR('#4: (new Number(-1)).toString(13) === "-1"'); } //CHECK#5 -if ((new Number(1)).toString(13) !== "1") { +if((new Number(1)).toString(13) !== "1"){ $ERROR('#5: (new Number(1)).toString(13) === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString(13) !== "NaN") { +if((new Number(Number.NaN)).toString(13) !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString(13) === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString(13) !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString(13) !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(13) === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString(13) !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString(13) !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(13) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T12.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T12.js index 86b09f7ee..eead1a532 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T12.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T12.js @@ -10,41 +10,41 @@ description: radix is 14 ---*/ //CHECK#1 -if (Number.prototype.toString(14) !== "0") { +if(Number.prototype.toString(14) !== "0"){ $ERROR('#1: Number.prototype.toString(14) === "0"'); } //CHECK#2 -if ((new Number()).toString(14) !== "0") { +if((new Number()).toString(14) !== "0"){ $ERROR('#2: (new Number()).toString(14) === "0"'); } //CHECK#3 -if ((new Number(0)).toString(14) !== "0") { +if((new Number(0)).toString(14) !== "0"){ $ERROR('#3: (new Number(0)).toString(14) === "0"'); } //CHECK#4 -if ((new Number(-1)).toString(14) !== "-1") { +if((new Number(-1)).toString(14) !== "-1"){ $ERROR('#4: (new Number(-1)).toString(14) === "-1"'); } //CHECK#5 -if ((new Number(1)).toString(14) !== "1") { +if((new Number(1)).toString(14) !== "1"){ $ERROR('#5: (new Number(1)).toString(14) === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString(14) !== "NaN") { +if((new Number(Number.NaN)).toString(14) !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString(14) === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString(14) !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString(14) !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(14) === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString(14) !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString(14) !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(14) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T13.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T13.js index 22947fb57..01b284aaf 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T13.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T13.js @@ -10,41 +10,41 @@ description: radix is 15 ---*/ //CHECK#1 -if (Number.prototype.toString(15) !== "0") { +if(Number.prototype.toString(15) !== "0"){ $ERROR('#1: Number.prototype.toString(15) === "0"'); } //CHECK#2 -if ((new Number()).toString(15) !== "0") { +if((new Number()).toString(15) !== "0"){ $ERROR('#2: (new Number()).toString(15) === "0"'); } //CHECK#3 -if ((new Number(0)).toString(15) !== "0") { +if((new Number(0)).toString(15) !== "0"){ $ERROR('#3: (new Number(0)).toString(15) === "0"'); } //CHECK#4 -if ((new Number(-1)).toString(15) !== "-1") { +if((new Number(-1)).toString(15) !== "-1"){ $ERROR('#4: (new Number(-1)).toString(15) === "-1"'); } //CHECK#5 -if ((new Number(1)).toString(15) !== "1") { +if((new Number(1)).toString(15) !== "1"){ $ERROR('#5: (new Number(1)).toString(15) === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString(15) !== "NaN") { +if((new Number(Number.NaN)).toString(15) !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString(15) === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString(15) !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString(15) !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(15) === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString(15) !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString(15) !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(15) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T14.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T14.js index 9daf9df1a..ed1c70aae 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T14.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T14.js @@ -10,41 +10,41 @@ description: radix is 16 ---*/ //CHECK#1 -if (Number.prototype.toString(16) !== "0") { +if(Number.prototype.toString(16) !== "0"){ $ERROR('#1: Number.prototype.toString(16) === "0"'); } //CHECK#2 -if ((new Number()).toString(16) !== "0") { +if((new Number()).toString(16) !== "0"){ $ERROR('#2: (new Number()).toString(16) === "0"'); } //CHECK#3 -if ((new Number(0)).toString(16) !== "0") { +if((new Number(0)).toString(16) !== "0"){ $ERROR('#3: (new Number(0)).toString(16) === "0"'); } //CHECK#4 -if ((new Number(-1)).toString(16) !== "-1") { +if((new Number(-1)).toString(16) !== "-1"){ $ERROR('#4: (new Number(-1)).toString(16) === "-1"'); } //CHECK#5 -if ((new Number(1)).toString(16) !== "1") { +if((new Number(1)).toString(16) !== "1"){ $ERROR('#5: (new Number(1)).toString(16) === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString(16) !== "NaN") { +if((new Number(Number.NaN)).toString(16) !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString(16) === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString(16) !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString(16) !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(16) === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString(16) !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString(16) !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(16) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T15.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T15.js index 2154961ee..5355c100f 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T15.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T15.js @@ -10,41 +10,41 @@ description: radix is 17 ---*/ //CHECK#1 -if (Number.prototype.toString(17) !== "0") { +if(Number.prototype.toString(17) !== "0"){ $ERROR('#1: Number.prototype.toString(17) === "0"'); } //CHECK#2 -if ((new Number()).toString(17) !== "0") { +if((new Number()).toString(17) !== "0"){ $ERROR('#2: (new Number()).toString(17) === "0"'); } //CHECK#3 -if ((new Number(0)).toString(17) !== "0") { +if((new Number(0)).toString(17) !== "0"){ $ERROR('#3: (new Number(0)).toString(17) === "0"'); } //CHECK#4 -if ((new Number(-1)).toString(17) !== "-1") { +if((new Number(-1)).toString(17) !== "-1"){ $ERROR('#4: (new Number(-1)).toString(17) === "-1"'); } //CHECK#5 -if ((new Number(1)).toString(17) !== "1") { +if((new Number(1)).toString(17) !== "1"){ $ERROR('#5: (new Number(1)).toString(17) === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString(17) !== "NaN") { +if((new Number(Number.NaN)).toString(17) !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString(17) === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString(17) !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString(17) !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(17) === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString(17) !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString(17) !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(17) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T16.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T16.js index b2c9559b1..5367718ef 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T16.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T16.js @@ -10,41 +10,41 @@ description: radix is 18 ---*/ //CHECK#1 -if (Number.prototype.toString(18) !== "0") { +if(Number.prototype.toString(18) !== "0"){ $ERROR('#1: Number.prototype.toString(18) === "0"'); } //CHECK#2 -if ((new Number()).toString(18) !== "0") { +if((new Number()).toString(18) !== "0"){ $ERROR('#2: (new Number()).toString(18) === "0"'); } //CHECK#3 -if ((new Number(0)).toString(18) !== "0") { +if((new Number(0)).toString(18) !== "0"){ $ERROR('#3: (new Number(0)).toString(18) === "0"'); } //CHECK#4 -if ((new Number(-1)).toString(18) !== "-1") { +if((new Number(-1)).toString(18) !== "-1"){ $ERROR('#4: (new Number(-1)).toString(18) === "-1"'); } //CHECK#5 -if ((new Number(1)).toString(18) !== "1") { +if((new Number(1)).toString(18) !== "1"){ $ERROR('#5: (new Number(1)).toString(18) === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString(18) !== "NaN") { +if((new Number(Number.NaN)).toString(18) !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString(18) === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString(18) !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString(18) !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(18) === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString(18) !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString(18) !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(18) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T17.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T17.js index 93469824b..bc51f7c3a 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T17.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T17.js @@ -10,41 +10,41 @@ description: radix is 19 ---*/ //CHECK#1 -if (Number.prototype.toString(19) !== "0") { +if(Number.prototype.toString(19) !== "0"){ $ERROR('#1: Number.prototype.toString(19) === "0"'); } //CHECK#2 -if ((new Number()).toString(19) !== "0") { +if((new Number()).toString(19) !== "0"){ $ERROR('#2: (new Number()).toString(19) === "0"'); } //CHECK#3 -if ((new Number(0)).toString(19) !== "0") { +if((new Number(0)).toString(19) !== "0"){ $ERROR('#3: (new Number(0)).toString(19) === "0"'); } //CHECK#4 -if ((new Number(-1)).toString(19) !== "-1") { +if((new Number(-1)).toString(19) !== "-1"){ $ERROR('#4: (new Number(-1)).toString(19) === "-1"'); } //CHECK#5 -if ((new Number(1)).toString(19) !== "1") { +if((new Number(1)).toString(19) !== "1"){ $ERROR('#5: (new Number(1)).toString(19) === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString(19) !== "NaN") { +if((new Number(Number.NaN)).toString(19) !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString(19) === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString(19) !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString(19) !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(19) === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString(19) !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString(19) !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(19) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T18.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T18.js index 3c0aa4a40..f5ebae949 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T18.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T18.js @@ -10,41 +10,41 @@ description: radix is 20 ---*/ //CHECK#1 -if (Number.prototype.toString(20) !== "0") { +if(Number.prototype.toString(20) !== "0"){ $ERROR('#1: Number.prototype.toString(20) === "0"'); } //CHECK#2 -if ((new Number()).toString(20) !== "0") { +if((new Number()).toString(20) !== "0"){ $ERROR('#2: (new Number()).toString(20) === "0"'); } //CHECK#3 -if ((new Number(0)).toString(20) !== "0") { +if((new Number(0)).toString(20) !== "0"){ $ERROR('#3: (new Number(0)).toString(20) === "0"'); } //CHECK#4 -if ((new Number(-1)).toString(20) !== "-1") { +if((new Number(-1)).toString(20) !== "-1"){ $ERROR('#4: (new Number(-1)).toString(20) === "-1"'); } //CHECK#5 -if ((new Number(1)).toString(20) !== "1") { +if((new Number(1)).toString(20) !== "1"){ $ERROR('#5: (new Number(1)).toString(20) === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString(20) !== "NaN") { +if((new Number(Number.NaN)).toString(20) !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString(20) === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString(20) !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString(20) !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(20) === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString(20) !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString(20) !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(20) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T19.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T19.js index 1ccdc57c6..a42479834 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T19.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T19.js @@ -10,41 +10,41 @@ description: radix is 21 ---*/ //CHECK#1 -if (Number.prototype.toString(21) !== "0") { +if(Number.prototype.toString(21) !== "0"){ $ERROR('#1: Number.prototype.toString(21) === "0"'); } //CHECK#2 -if ((new Number()).toString(21) !== "0") { +if((new Number()).toString(21) !== "0"){ $ERROR('#2: (new Number()).toString(21) === "0"'); } //CHECK#3 -if ((new Number(0)).toString(21) !== "0") { +if((new Number(0)).toString(21) !== "0"){ $ERROR('#3: (new Number(0)).toString(21) === "0"'); } //CHECK#4 -if ((new Number(-1)).toString(21) !== "-1") { +if((new Number(-1)).toString(21) !== "-1"){ $ERROR('#4: (new Number(-1)).toString(21) === "-1"'); } //CHECK#5 -if ((new Number(1)).toString(21) !== "1") { +if((new Number(1)).toString(21) !== "1"){ $ERROR('#5: (new Number(1)).toString(21) === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString(21) !== "NaN") { +if((new Number(Number.NaN)).toString(21) !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString(21) === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString(21) !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString(21) !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(21) === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString(21) !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString(21) !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(21) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T20.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T20.js index 762ef884d..8ee2cae70 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T20.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T20.js @@ -10,41 +10,41 @@ description: radix is 22 ---*/ //CHECK#1 -if (Number.prototype.toString(22) !== "0") { +if(Number.prototype.toString(22) !== "0"){ $ERROR('#1: Number.prototype.toString(22) === "0"'); } //CHECK#2 -if ((new Number()).toString(22) !== "0") { +if((new Number()).toString(22) !== "0"){ $ERROR('#2: (new Number()).toString(22) === "0"'); } //CHECK#3 -if ((new Number(0)).toString(22) !== "0") { +if((new Number(0)).toString(22) !== "0"){ $ERROR('#3: (new Number(0)).toString(22) === "0"'); } //CHECK#4 -if ((new Number(-1)).toString(22) !== "-1") { +if((new Number(-1)).toString(22) !== "-1"){ $ERROR('#4: (new Number(-1)).toString(22) === "-1"'); } //CHECK#5 -if ((new Number(1)).toString(22) !== "1") { +if((new Number(1)).toString(22) !== "1"){ $ERROR('#5: (new Number(1)).toString(22) === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString(22) !== "NaN") { +if((new Number(Number.NaN)).toString(22) !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString(22) === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString(22) !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString(22) !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(22) === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString(22) !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString(22) !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(22) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T21.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T21.js index d7bb9b9e9..6588d3e70 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T21.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T21.js @@ -10,41 +10,41 @@ description: radix is 23 ---*/ //CHECK#1 -if (Number.prototype.toString(23) !== "0") { +if(Number.prototype.toString(23) !== "0"){ $ERROR('#1: Number.prototype.toString(23) === "0"'); } //CHECK#2 -if ((new Number()).toString(23) !== "0") { +if((new Number()).toString(23) !== "0"){ $ERROR('#2: (new Number()).toString(23) === "0"'); } //CHECK#3 -if ((new Number(0)).toString(23) !== "0") { +if((new Number(0)).toString(23) !== "0"){ $ERROR('#3: (new Number(0)).toString(23) === "0"'); } //CHECK#4 -if ((new Number(-1)).toString(23) !== "-1") { +if((new Number(-1)).toString(23) !== "-1"){ $ERROR('#4: (new Number(-1)).toString(23) === "-1"'); } //CHECK#5 -if ((new Number(1)).toString(23) !== "1") { +if((new Number(1)).toString(23) !== "1"){ $ERROR('#5: (new Number(1)).toString(23) === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString(23) !== "NaN") { +if((new Number(Number.NaN)).toString(23) !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString(23) === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString(23) !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString(23) !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(23) === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString(23) !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString(23) !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(23) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T22.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T22.js index 90f3a18f5..f9e726d49 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T22.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T22.js @@ -10,41 +10,41 @@ description: radix is 24 ---*/ //CHECK#1 -if (Number.prototype.toString(24) !== "0") { +if(Number.prototype.toString(24) !== "0"){ $ERROR('#1: Number.prototype.toString(24) === "0"'); } //CHECK#2 -if ((new Number()).toString(24) !== "0") { +if((new Number()).toString(24) !== "0"){ $ERROR('#2: (new Number()).toString(24) === "0"'); } //CHECK#3 -if ((new Number(0)).toString(24) !== "0") { +if((new Number(0)).toString(24) !== "0"){ $ERROR('#3: (new Number(0)).toString(24) === "0"'); } //CHECK#4 -if ((new Number(-1)).toString(24) !== "-1") { +if((new Number(-1)).toString(24) !== "-1"){ $ERROR('#4: (new Number(-1)).toString(24) === "-1"'); } //CHECK#5 -if ((new Number(1)).toString(24) !== "1") { +if((new Number(1)).toString(24) !== "1"){ $ERROR('#5: (new Number(1)).toString(24) === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString(24) !== "NaN") { +if((new Number(Number.NaN)).toString(24) !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString(24) === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString(24) !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString(24) !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(24) === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString(24) !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString(24) !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(24) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T23.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T23.js index 4d959df96..7a8be29a9 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T23.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T23.js @@ -10,41 +10,41 @@ description: radix is 25 ---*/ //CHECK#1 -if (Number.prototype.toString(25) !== "0") { +if(Number.prototype.toString(25) !== "0"){ $ERROR('#1: Number.prototype.toString(25) === "0"'); } //CHECK#2 -if ((new Number()).toString(25) !== "0") { +if((new Number()).toString(25) !== "0"){ $ERROR('#2: (new Number()).toString(25) === "0"'); } //CHECK#3 -if ((new Number(0)).toString(25) !== "0") { +if((new Number(0)).toString(25) !== "0"){ $ERROR('#3: (new Number(0)).toString(25) === "0"'); } //CHECK#4 -if ((new Number(-1)).toString(25) !== "-1") { +if((new Number(-1)).toString(25) !== "-1"){ $ERROR('#4: (new Number(-1)).toString(25) === "-1"'); } //CHECK#5 -if ((new Number(1)).toString(25) !== "1") { +if((new Number(1)).toString(25) !== "1"){ $ERROR('#5: (new Number(1)).toString(25) === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString(25) !== "NaN") { +if((new Number(Number.NaN)).toString(25) !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString(25) === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString(25) !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString(25) !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(25) === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString(25) !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString(25) !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(25) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T24.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T24.js index a17f09419..46b4b8c66 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T24.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T24.js @@ -10,41 +10,41 @@ description: radix is 26 ---*/ //CHECK#1 -if (Number.prototype.toString(26) !== "0") { +if(Number.prototype.toString(26) !== "0"){ $ERROR('#1: Number.prototype.toString(26) === "0"'); } //CHECK#2 -if ((new Number()).toString(26) !== "0") { +if((new Number()).toString(26) !== "0"){ $ERROR('#2: (new Number()).toString(26) === "0"'); } //CHECK#3 -if ((new Number(0)).toString(26) !== "0") { +if((new Number(0)).toString(26) !== "0"){ $ERROR('#3: (new Number(0)).toString(26) === "0"'); } //CHECK#4 -if ((new Number(-1)).toString(26) !== "-1") { +if((new Number(-1)).toString(26) !== "-1"){ $ERROR('#4: (new Number(-1)).toString(26) === "-1"'); } //CHECK#5 -if ((new Number(1)).toString(26) !== "1") { +if((new Number(1)).toString(26) !== "1"){ $ERROR('#5: (new Number(1)).toString(26) === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString(26) !== "NaN") { +if((new Number(Number.NaN)).toString(26) !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString(26) === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString(26) !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString(26) !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(26) === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString(26) !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString(26) !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(26) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T25.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T25.js index 69bb10dc8..534de71ec 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T25.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T25.js @@ -10,41 +10,41 @@ description: radix is 27 ---*/ //CHECK#1 -if (Number.prototype.toString(27) !== "0") { +if(Number.prototype.toString(27) !== "0"){ $ERROR('#1: Number.prototype.toString(27) === "0"'); } //CHECK#2 -if ((new Number()).toString(27) !== "0") { +if((new Number()).toString(27) !== "0"){ $ERROR('#2: (new Number()).toString(27) === "0"'); } //CHECK#3 -if ((new Number(0)).toString(27) !== "0") { +if((new Number(0)).toString(27) !== "0"){ $ERROR('#3: (new Number(0)).toString(27) === "0"'); } //CHECK#4 -if ((new Number(-1)).toString(27) !== "-1") { +if((new Number(-1)).toString(27) !== "-1"){ $ERROR('#4: (new Number(-1)).toString(27) === "-1"'); } //CHECK#5 -if ((new Number(1)).toString(27) !== "1") { +if((new Number(1)).toString(27) !== "1"){ $ERROR('#5: (new Number(1)).toString(27) === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString(27) !== "NaN") { +if((new Number(Number.NaN)).toString(27) !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString(27) === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString(27) !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString(27) !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(27) === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString(27) !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString(27) !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(27) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T26.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T26.js index f80f78216..71cd09775 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T26.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T26.js @@ -10,41 +10,41 @@ description: radix is 28 ---*/ //CHECK#1 -if (Number.prototype.toString(28) !== "0") { +if(Number.prototype.toString(28) !== "0"){ $ERROR('#1: Number.prototype.toString(28) === "0"'); } //CHECK#2 -if ((new Number()).toString(28) !== "0") { +if((new Number()).toString(28) !== "0"){ $ERROR('#2: (new Number()).toString(28) === "0"'); } //CHECK#3 -if ((new Number(0)).toString(28) !== "0") { +if((new Number(0)).toString(28) !== "0"){ $ERROR('#3: (new Number(0)).toString(28) === "0"'); } //CHECK#4 -if ((new Number(-1)).toString(28) !== "-1") { +if((new Number(-1)).toString(28) !== "-1"){ $ERROR('#4: (new Number(-1)).toString(28) === "-1"'); } //CHECK#5 -if ((new Number(1)).toString(28) !== "1") { +if((new Number(1)).toString(28) !== "1"){ $ERROR('#5: (new Number(1)).toString(28) === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString(28) !== "NaN") { +if((new Number(Number.NaN)).toString(28) !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString(28) === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString(28) !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString(28) !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(28) === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString(28) !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString(28) !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(28) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T27.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T27.js index e76d24393..f8dd136b8 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T27.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T27.js @@ -10,41 +10,41 @@ description: radix is 29 ---*/ //CHECK#1 -if (Number.prototype.toString(29) !== "0") { +if(Number.prototype.toString(29) !== "0"){ $ERROR('#1: Number.prototype.toString(29) === "0"'); } //CHECK#2 -if ((new Number()).toString(29) !== "0") { +if((new Number()).toString(29) !== "0"){ $ERROR('#2: (new Number()).toString(29) === "0"'); } //CHECK#3 -if ((new Number(0)).toString(29) !== "0") { +if((new Number(0)).toString(29) !== "0"){ $ERROR('#3: (new Number(0)).toString(29) === "0"'); } //CHECK#4 -if ((new Number(-1)).toString(29) !== "-1") { +if((new Number(-1)).toString(29) !== "-1"){ $ERROR('#4: (new Number(-1)).toString(29) === "-1"'); } //CHECK#5 -if ((new Number(1)).toString(29) !== "1") { +if((new Number(1)).toString(29) !== "1"){ $ERROR('#5: (new Number(1)).toString(29) === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString(29) !== "NaN") { +if((new Number(Number.NaN)).toString(29) !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString(29) === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString(29) !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString(29) !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(29) === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString(29) !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString(29) !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(29) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T28.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T28.js index 1785e33be..deda5fc2e 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T28.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T28.js @@ -10,41 +10,41 @@ description: radix is 30 ---*/ //CHECK#1 -if (Number.prototype.toString(30) !== "0") { +if(Number.prototype.toString(30) !== "0"){ $ERROR('#1: Number.prototype.toString(30) === "0"'); } //CHECK#2 -if ((new Number()).toString(30) !== "0") { +if((new Number()).toString(30) !== "0"){ $ERROR('#2: (new Number()).toString(30) === "0"'); } //CHECK#3 -if ((new Number(0)).toString(30) !== "0") { +if((new Number(0)).toString(30) !== "0"){ $ERROR('#3: (new Number(0)).toString(30) === "0"'); } //CHECK#4 -if ((new Number(-1)).toString(30) !== "-1") { +if((new Number(-1)).toString(30) !== "-1"){ $ERROR('#4: (new Number(-1)).toString(30) === "-1"'); } //CHECK#5 -if ((new Number(1)).toString(30) !== "1") { +if((new Number(1)).toString(30) !== "1"){ $ERROR('#5: (new Number(1)).toString(30) === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString(30) !== "NaN") { +if((new Number(Number.NaN)).toString(30) !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString(30) === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString(30) !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString(30) !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(30) === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString(30) !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString(30) !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(30) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T29.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T29.js index 13d43a251..c675984c0 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T29.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T29.js @@ -10,41 +10,41 @@ description: radix is 31 ---*/ //CHECK#1 -if (Number.prototype.toString(31) !== "0") { +if(Number.prototype.toString(31) !== "0"){ $ERROR('#1: Number.prototype.toString(31) === "0"'); } //CHECK#2 -if ((new Number()).toString(31) !== "0") { +if((new Number()).toString(31) !== "0"){ $ERROR('#2: (new Number()).toString(31) === "0"'); } //CHECK#3 -if ((new Number(0)).toString(31) !== "0") { +if((new Number(0)).toString(31) !== "0"){ $ERROR('#3: (new Number(0)).toString(31) === "0"'); } //CHECK#4 -if ((new Number(-1)).toString(31) !== "-1") { +if((new Number(-1)).toString(31) !== "-1"){ $ERROR('#4: (new Number(-1)).toString(31) === "-1"'); } //CHECK#5 -if ((new Number(1)).toString(31) !== "1") { +if((new Number(1)).toString(31) !== "1"){ $ERROR('#5: (new Number(1)).toString(31) === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString(31) !== "NaN") { +if((new Number(Number.NaN)).toString(31) !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString(31) === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString(31) !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString(31) !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(31) === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString(31) !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString(31) !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(31) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T30.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T30.js index 41055500e..abe038384 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T30.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T30.js @@ -10,41 +10,41 @@ description: radix is 32 ---*/ //CHECK#1 -if (Number.prototype.toString(32) !== "0") { +if(Number.prototype.toString(32) !== "0"){ $ERROR('#1: Number.prototype.toString(32) === "0"'); } //CHECK#2 -if ((new Number()).toString(32) !== "0") { +if((new Number()).toString(32) !== "0"){ $ERROR('#2: (new Number()).toString(32) === "0"'); } //CHECK#3 -if ((new Number(0)).toString(32) !== "0") { +if((new Number(0)).toString(32) !== "0"){ $ERROR('#3: (new Number(0)).toString(32) === "0"'); } //CHECK#4 -if ((new Number(-1)).toString(32) !== "-1") { +if((new Number(-1)).toString(32) !== "-1"){ $ERROR('#4: (new Number(-1)).toString(32) === "-1"'); } //CHECK#5 -if ((new Number(1)).toString(32) !== "1") { +if((new Number(1)).toString(32) !== "1"){ $ERROR('#5: (new Number(1)).toString(32) === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString(32) !== "NaN") { +if((new Number(Number.NaN)).toString(32) !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString(32) === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString(32) !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString(32) !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(32) === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString(32) !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString(32) !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(32) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T31.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T31.js index b14849bfa..9f0187a6a 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T31.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T31.js @@ -10,41 +10,41 @@ description: radix is 33 ---*/ //CHECK#1 -if (Number.prototype.toString(33) !== "0") { +if(Number.prototype.toString(33) !== "0"){ $ERROR('#1: Number.prototype.toString(33) === "0"'); } //CHECK#2 -if ((new Number()).toString(33) !== "0") { +if((new Number()).toString(33) !== "0"){ $ERROR('#2: (new Number()).toString(33) === "0"'); } //CHECK#3 -if ((new Number(0)).toString(33) !== "0") { +if((new Number(0)).toString(33) !== "0"){ $ERROR('#3: (new Number(0)).toString(33) === "0"'); } //CHECK#4 -if ((new Number(-1)).toString(33) !== "-1") { +if((new Number(-1)).toString(33) !== "-1"){ $ERROR('#4: (new Number(-1)).toString(33) === "-1"'); } //CHECK#5 -if ((new Number(1)).toString(33) !== "1") { +if((new Number(1)).toString(33) !== "1"){ $ERROR('#5: (new Number(1)).toString(33) === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString(33) !== "NaN") { +if((new Number(Number.NaN)).toString(33) !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString(33) === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString(33) !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString(33) !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(33) === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString(33) !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString(33) !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(33) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T32.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T32.js index 9de1cca33..99543d170 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T32.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T32.js @@ -10,41 +10,41 @@ description: radix is 34 ---*/ //CHECK#1 -if (Number.prototype.toString(34) !== "0") { +if(Number.prototype.toString(34) !== "0"){ $ERROR('#1: Number.prototype.toString(34) === "0"'); } //CHECK#2 -if ((new Number()).toString(34) !== "0") { +if((new Number()).toString(34) !== "0"){ $ERROR('#2: (new Number()).toString(34) === "0"'); } //CHECK#3 -if ((new Number(0)).toString(34) !== "0") { +if((new Number(0)).toString(34) !== "0"){ $ERROR('#3: (new Number(0)).toString(34) === "0"'); } //CHECK#4 -if ((new Number(-1)).toString(34) !== "-1") { +if((new Number(-1)).toString(34) !== "-1"){ $ERROR('#4: (new Number(-1)).toString(34) === "-1"'); } //CHECK#5 -if ((new Number(1)).toString(34) !== "1") { +if((new Number(1)).toString(34) !== "1"){ $ERROR('#5: (new Number(1)).toString(34) === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString(34) !== "NaN") { +if((new Number(Number.NaN)).toString(34) !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString(34) === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString(34) !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString(34) !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(34) === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString(34) !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString(34) !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(34) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T33.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T33.js index 55fb04064..be9013758 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T33.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T33.js @@ -10,41 +10,41 @@ description: radix is 35 ---*/ //CHECK#1 -if (Number.prototype.toString(35) !== "0") { +if(Number.prototype.toString(35) !== "0"){ $ERROR('#1: Number.prototype.toString(35) === "0"'); } //CHECK#2 -if ((new Number()).toString(35) !== "0") { +if((new Number()).toString(35) !== "0"){ $ERROR('#2: (new Number()).toString(35) === "0"'); } //CHECK#3 -if ((new Number(0)).toString(35) !== "0") { +if((new Number(0)).toString(35) !== "0"){ $ERROR('#3: (new Number(0)).toString(35) === "0"'); } //CHECK#4 -if ((new Number(-1)).toString(35) !== "-1") { +if((new Number(-1)).toString(35) !== "-1"){ $ERROR('#4: (new Number(-1)).toString(35) === "-1"'); } //CHECK#5 -if ((new Number(1)).toString(35) !== "1") { +if((new Number(1)).toString(35) !== "1"){ $ERROR('#5: (new Number(1)).toString(35) === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString(35) !== "NaN") { +if((new Number(Number.NaN)).toString(35) !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString(35) === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString(35) !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString(35) !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(35) === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString(35) !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString(35) !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(35) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T34.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T34.js index 82f8fea87..7c2cfabbc 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T34.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A2_T34.js @@ -10,41 +10,41 @@ description: radix is 36 ---*/ //CHECK#1 -if (Number.prototype.toString(36) !== "0") { +if(Number.prototype.toString(36) !== "0"){ $ERROR('#1: Number.prototype.toString(36) === "0"'); } //CHECK#2 -if ((new Number()).toString(36) !== "0") { +if((new Number()).toString(36) !== "0"){ $ERROR('#2: (new Number()).toString(36) === "0"'); } //CHECK#3 -if ((new Number(0)).toString(36) !== "0") { +if((new Number(0)).toString(36) !== "0"){ $ERROR('#3: (new Number(0)).toString(36) === "0"'); } //CHECK#4 -if ((new Number(-1)).toString(36) !== "-1") { +if((new Number(-1)).toString(36) !== "-1"){ $ERROR('#4: (new Number(-1)).toString(36) === "-1"'); } //CHECK#5 -if ((new Number(1)).toString(36) !== "1") { +if((new Number(1)).toString(36) !== "1"){ $ERROR('#5: (new Number(1)).toString(36) === "1"'); } //CHECK#6 -if ((new Number(Number.NaN)).toString(36) !== "NaN") { +if((new Number(Number.NaN)).toString(36) !== "NaN"){ $ERROR('#6: (new Number(Number.NaN)).toString(36) === "NaN"'); } //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).toString(36) !== "Infinity") { +if((new Number(Number.POSITIVE_INFINITY)).toString(36) !== "Infinity"){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(36) === "Infinity"'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).toString(36) !== "-Infinity") { +if((new Number(Number.NEGATIVE_INFINITY)).toString(36) !== "-Infinity"){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(36) === "-Infinity"'); } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T01.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T01.js index cc6b6aadc..bc2190c3e 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T01.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T01.js @@ -8,57 +8,65 @@ description: radix is 1 ---*/ //CHECK#1 -try { +try{ var n = Number.prototype.toString(1); $ERROR('#1: Number.prototype.toString(1) should throw an Error'); } -catch (e) {} +catch(e){ +} //CHECK#2 -try { +try{ var n = (new Number()).toString(1); $ERROR('#2: (new Number()).toString(1) should throw an Error'); } -catch (e) {} +catch(e){ +} //CHECK#3 -try { +try{ var n = (new Number(0)).toString(1); $ERROR('#3: (new Number(0)).toString(1) should throw an Error'); } -catch (e) {} +catch(e){ +} //CHECK#4 -try { +try{ var n = (new Number(-1)).toString(1); $ERROR('#4: (new Number(-1)).toString(1) should throw an Error'); } -catch (e) {} +catch(e){ +} //CHECK#5 -try { - var n = (new Number(1)).toString(1); +try{ + var n =(new Number(1)).toString(1); $ERROR('#5: (new Number(1)).toString(1) should throw an Error'); } -catch (e) {} +catch(e){ +} //CHECK#6 -try { - var n = (new Number(Number.NaN)).toString(1); +try{ + var n =(new Number(Number.NaN)).toString(1); $ERROR('#6: (new Number(Number.NaN)).toString(1) should throw an Error'); } -catch (e) {} +catch(e){ +} //CHECK#7 -try { - var n = (new Number(Number.POSITIVE_INFINITY)).toString(1); +try{ + var n =(new Number(Number.POSITIVE_INFINITY)).toString(1); $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(1) should throw an Error'); } -catch (e) {} +catch(e){ +} //CHECK#8 -try { - var n = (new Number(Number.NEGATIVE_INFINITY)).toString(1); +try{ + var n =(new Number(Number.NEGATIVE_INFINITY)).toString(1); $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(1) should throw an Error'); } -catch (e) {} +catch(e){ +} diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T02.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T02.js index 1033c384f..e26c3aa29 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T02.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T02.js @@ -8,57 +8,65 @@ description: radix is 37 ---*/ //CHECK#1 -try { - var n = Number.prototype.toString(37); +try{ + var n =Number.prototype.toString(37); $ERROR('#1: Number.prototype.toString(37) should throw an Error'); } -catch (e) {} +catch(e){ +} //CHECK#2 -try { - var n = (new Number()).toString(37); +try{ + var n =(new Number()).toString(37); $ERROR('#2: (new Number()).toString(37) should throw an Error'); } -catch (e) {} +catch(e){ +} //CHECK#3 -try { - var n = (new Number(0)).toString(37); +try{ + var n =(new Number(0)).toString(37); $ERROR('#3: (new Number(0)).toString(37) should throw an Error'); } -catch (e) {} +catch(e){ +} //CHECK#4 -try { - var n = (new Number(-1)).toString(37); +try{ + var n =(new Number(-1)).toString(37); $ERROR('#4: (new Number(-1)).toString(37) should throw an Error'); } -catch (e) {} +catch(e){ +} //CHECK#5 -try { - var n = (new Number(1)).toString(37); +try{ + var n =(new Number(1)).toString(37); $ERROR('#5: (new Number(1)).toString(37) should throw an Error'); } -catch (e) {} +catch(e){ +} //CHECK#6 -try { - var n = (new Number(Number.NaN)).toString(37); +try{ + var n =(new Number(Number.NaN)).toString(37); $ERROR('#6: (new Number(Number.NaN)).toString(37) should throw an Error'); } -catch (e) {} +catch(e){ +} //CHECK#7 -try { - var n = (new Number(Number.POSITIVE_INFINITY)).toString(37); +try{ + var n =(new Number(Number.POSITIVE_INFINITY)).toString(37); $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(37) should throw an Error'); } -catch (e) {} +catch(e){ +} //CHECK#8 -try { - var n = (new Number(Number.NEGATIVE_INFINITY)).toString(37); +try{ + var n =(new Number(Number.NEGATIVE_INFINITY)).toString(37); $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(37) should throw an Error'); } -catch (e) {} +catch(e){ +} diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T03.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T03.js index 8c7b1ca54..a61229326 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T03.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T03.js @@ -8,57 +8,65 @@ description: radix is null value ---*/ //CHECK#1 -try { +try{ var n = Number.prototype.toString(null); $ERROR('#1: Number.prototype.toString(null) should throw an Error'); } -catch (e) {} +catch(e){ +} //CHECK#2 -try { +try{ var n = (new Number()).toString(null); $ERROR('#2: (new Number()).toString(null) should throw an Error'); } -catch (e) {} +catch(e){ +} //CHECK#3 -try { +try{ var n = (new Number(0)).toString(null); $ERROR('#3: (new Number(0)).toString(null) should throw an Error'); } -catch (e) {} +catch(e){ +} //CHECK#4 -try { +try{ var n = (new Number(-1)).toString(null); $ERROR('#4: (new Number(-1)).toString(null) should throw an Error'); } -catch (e) {} +catch(e){ +} //CHECK#5 -try { +try{ var n = (new Number(1)).toString(null); $ERROR('#5: (new Number(1)).toString(null) should throw an Error'); } -catch (e) {} +catch(e){ +} //CHECK#6 -try { +try{ var n = (new Number(Number.NaN)).toString(null); $ERROR('#6: (new Number(Number.NaN)).toString(null) should throw an Error'); } -catch (e) {} +catch(e){ +} //CHECK#7 -try { +try{ var n = (new Number(Number.POSITIVE_INFINITY)).toString(null); $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(null) should throw an Error'); } -catch (e) {} +catch(e){ +} //CHECK#8 -try { +try{ var n = (new Number(Number.NEGATIVE_INFINITY)).toString(null); $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(null) should throw an Error'); } -catch (e) {} +catch(e){ +} diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T04.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T04.js index 5a42dc9cf..9437e809c 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T04.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A3_T04.js @@ -8,57 +8,65 @@ description: radix is 0 ---*/ //CHECK#1 -try { +try{ var n = Number.prototype.toString(0); $ERROR('#1: Number.prototype.toString(0) should throw an Error'); } -catch (e) {} +catch(e){ +} //CHECK#2 -try { +try{ var n = (new Number()).toString(0); $ERROR('#2: (new Number()).toString(0) should throw an Error'); } -catch (e) {} +catch(e){ +} //CHECK#3 -try { +try{ var n = (new Number(0)).toString(0); $ERROR('#3: (new Number(0)).toString(0) should throw an Error'); } -catch (e) {} +catch(e){ +} //CHECK#4 -try { +try{ var n = (new Number(-1)).toString(0); $ERROR('#4: (new Number(-1)).toString(0) should throw an Error'); } -catch (e) {} +catch(e){ +} //CHECK#5 -try { +try{ var n = (new Number(1)).toString(0); $ERROR('#5: (new Number(1)).toString(0) should throw an Error'); } -catch (e) {} +catch(e){ +} //CHECK#6 -try { +try{ var n = (new Number(Number.NaN)).toString(0); $ERROR('#6: (new Number(Number.NaN)).toString(0) should throw an Error'); } -catch (e) {} +catch(e){ +} //CHECK#7 -try { +try{ var n = (new Number(Number.POSITIVE_INFINITY)).toString(0); $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).toString(0) should throw an Error'); } -catch (e) {} +catch(e){ +} //CHECK#8 -try { +try{ var n = (new Number(Number.NEGATIVE_INFINITY)).toString(0); $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).toString(0) should throw an Error'); } -catch (e) {} +catch(e){ +} diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T01.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T01.js index 44d3c72f8..f057f3b1c 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T01.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T01.js @@ -11,27 +11,27 @@ description: transferring to the String objects ---*/ //CHECK#1 -try { +try{ var s1 = new String(); s1.toString = Number.prototype.toString; - var v1 = s1.toString(); + var v1 = s1.toString(); $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError'); } -catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError, not ' + e); +catch(e){ + if(!(e instanceof TypeError)){ + $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError, not '+e); } } //CHECK#2 -try { +try{ var s2 = new String(); s2.myToString = Number.prototype.toString; - var v2 = s2.myToString(); + var v2 = s2.myToString(); $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError'); } -catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError, not ' + e); +catch(e){ + if(!(e instanceof TypeError)){ + $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError, not '+e); } } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T02.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T02.js index 23a395ee1..ba45672d6 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T02.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T02.js @@ -11,27 +11,27 @@ description: transferring to the Boolean objects ---*/ //CHECK#1 -try { +try{ var s1 = new Boolean(); s1.toString = Number.prototype.toString; - var v1 = s1.toString(); + var v1 = s1.toString(); $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError'); } -catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError, not ' + e); +catch(e){ + if(!(e instanceof TypeError)){ + $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError, not '+e); } } //CHECK#2 -try { +try{ var s2 = new Boolean(); s2.myToString = Number.prototype.toString; - var v2 = s2.myToString(); + var v2 = s2.myToString(); $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError'); } -catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError, not ' + e); +catch(e){ + if(!(e instanceof TypeError)){ + $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError, not '+e); } } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T03.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T03.js index c0fb16314..182a873aa 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T03.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T03.js @@ -11,27 +11,27 @@ description: transferring to the Date objects ---*/ //CHECK#1 -try { +try{ var s1 = new Date(); s1.toString = Number.prototype.toString; - var v1 = s1.toString(); + var v1 = s1.toString(); $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError'); } -catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError, not ' + e); +catch(e){ + if(!(e instanceof TypeError)){ + $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError, not '+e); } } //CHECK#2 -try { +try{ var s2 = new Date(); s2.myToString = Number.prototype.toString; - var v2 = s2.myToString(); + var v2 = s2.myToString(); $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError'); } -catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError, not ' + e); +catch(e){ + if(!(e instanceof TypeError)){ + $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError, not '+e); } } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T04.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T04.js index 32950e329..bb62879f2 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T04.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T04.js @@ -11,27 +11,27 @@ description: transferring to the Object objects ---*/ //CHECK#1 -try { +try{ var s1 = new Object(); s1.toString = Number.prototype.toString; - var v1 = s1.toString(); + var v1 = s1.toString(); $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError'); } -catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError, not ' + e); +catch(e){ + if(!(e instanceof TypeError)){ + $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError, not '+e); } } //CHECK#2 -try { +try{ var s2 = new Object(); s2.myToString = Number.prototype.toString; - var v2 = s2.myToString(); + var v2 = s2.myToString(); $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError'); } -catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError, not ' + e); +catch(e){ + if(!(e instanceof TypeError)){ + $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError, not '+e); } } diff --git a/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T05.js b/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T05.js index fc0f76e86..01e34d92a 100644 --- a/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T05.js +++ b/test/built-ins/Number/prototype/toString/S15.7.4.2_A4_T05.js @@ -11,31 +11,27 @@ description: transferring to the other objects ---*/ //CHECK#1 -try { - var s1 = { - x: 1 - }; +try{ + var s1 = {x: 1}; s1.toString = Number.prototype.toString; - var v1 = s1.toString(); + var v1 = s1.toString(); $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError'); } -catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError, not ' + e); +catch(e){ + if(!(e instanceof TypeError)){ + $ERROR('#1: Number.prototype.toString on not a Number object should throw TypeError, not '+e); } } //CHECK#2 -try { - var s2 = { - x: 1 - }; +try{ + var s2 = {x: 1}; s2.myToString = Number.prototype.toString; - var v2 = s2.myToString(); + var v2 = s2.myToString(); $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError'); } -catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError, not ' + e); +catch(e){ + if(!(e instanceof TypeError)){ + $ERROR('#2: Number.prototype.toString on not a Number object should throw TypeError, not '+e); } } |