diff options
author | André Bargull <andre.bargull@gmail.com> | 2018-02-09 09:09:47 -0800 |
---|---|---|
committer | Leo Balter <leonardo.balter@gmail.com> | 2018-02-09 12:09:47 -0500 |
commit | f95b56ab28c5f18150f30fbfa889a4f6ba0e50a1 (patch) | |
tree | d403f704c1b6a1842f12df380651919beaaf5fef /test/built-ins/Number/prototype | |
parent | a01de4a722d088055a7d84d8c691ddd7109edb34 (diff) | |
download | qtdeclarative-testsuites-f95b56ab28c5f18150f30fbfa889a4f6ba0e50a1.tar.gz |
Revert "js-beautify: make all indentation consistent (depth & character) (#1409)" (#1412)
This reverts commit a01de4a722d088055a7d84d8c691ddd7109edb34.
Diffstat (limited to 'test/built-ins/Number/prototype')
72 files changed, 608 insertions, 581 deletions
diff --git a/test/built-ins/Number/prototype/15.7.3.1-2.js b/test/built-ins/Number/prototype/15.7.3.1-2.js index 0d3bd2a22..dbb49123f 100644 --- a/test/built-ins/Number/prototype/15.7.3.1-2.js +++ b/test/built-ins/Number/prototype/15.7.3.1-2.js @@ -6,6 +6,6 @@ es5id: 15.7.3.1-2 description: Number.prototype, initial value is the Number prototype object ---*/ -// assume that Number.prototype has not been modified. + // assume that Number.prototype has not been modified. assert.sameValue(Object.getPrototypeOf(new Number(42)), Number.prototype, 'Object.getPrototypeOf(new Number(42))'); diff --git a/test/built-ins/Number/prototype/S15.7.3.1_A3.js b/test/built-ins/Number/prototype/S15.7.3.1_A3.js index 5abcc2012..5f86ce5fa 100644 --- a/test/built-ins/Number/prototype/S15.7.3.1_A3.js +++ b/test/built-ins/Number/prototype/S15.7.3.1_A3.js @@ -10,6 +10,6 @@ description: Checking value of Number.prototype property //CHECK#1 if (Number.prototype != 0) { $ERROR('#2: Number.prototype == +0'); -} else if (1 / Number.prototype != Number.POSITIVE_INFINITY) { +} else if( 1/Number.prototype != Number.POSITIVE_INFINITY){ $ERROR('#2: Number.prototype == +0'); } diff --git a/test/built-ins/Number/prototype/S15.7.4_A1.js b/test/built-ins/Number/prototype/S15.7.4_A1.js index a314e8c9c..a9c7aab46 100644 --- a/test/built-ins/Number/prototype/S15.7.4_A1.js +++ b/test/built-ins/Number/prototype/S15.7.4_A1.js @@ -17,7 +17,7 @@ if (typeof Number.prototype !== "object") { //CHECK#2 if (Number.prototype != 0) { $ERROR('#2: Number.prototype == +0'); -} else if (1 / Number.prototype != Number.POSITIVE_INFINITY) { +} else if( 1/Number.prototype != Number.POSITIVE_INFINITY){ $ERROR('#2: Number.prototype == +0'); } diff --git a/test/built-ins/Number/prototype/S15.7.4_A3.1.js b/test/built-ins/Number/prototype/S15.7.4_A3.1.js index 46fc97dd6..102060a35 100644 --- a/test/built-ins/Number/prototype/S15.7.4_A3.1.js +++ b/test/built-ins/Number/prototype/S15.7.4_A3.1.js @@ -8,6 +8,6 @@ description: The test uses hasOwnProperty() method ---*/ //CHECK#1 -if (Number.prototype.hasOwnProperty("constructor") !== true) { +if(Number.prototype.hasOwnProperty("constructor") !== true){ $ERROR('#1: The Number prototype object has the property constructor'); } diff --git a/test/built-ins/Number/prototype/S15.7.4_A3.2.js b/test/built-ins/Number/prototype/S15.7.4_A3.2.js index c4f97672c..d233dc7e1 100644 --- a/test/built-ins/Number/prototype/S15.7.4_A3.2.js +++ b/test/built-ins/Number/prototype/S15.7.4_A3.2.js @@ -8,6 +8,6 @@ description: The test uses hasOwnProperty() method ---*/ //CHECK#1 -if (Number.prototype.hasOwnProperty("toString") !== true) { +if(Number.prototype.hasOwnProperty("toString") !== true){ $ERROR('#1: The Number prototype object has the property toString'); } diff --git a/test/built-ins/Number/prototype/S15.7.4_A3.3.js b/test/built-ins/Number/prototype/S15.7.4_A3.3.js index ffae90cb4..ad9b3ec4f 100644 --- a/test/built-ins/Number/prototype/S15.7.4_A3.3.js +++ b/test/built-ins/Number/prototype/S15.7.4_A3.3.js @@ -8,6 +8,6 @@ description: The test uses hasOwnProperty() method ---*/ //CHECK#1 -if (Number.prototype.hasOwnProperty("toLocaleString") !== true) { +if(Number.prototype.hasOwnProperty("toLocaleString") !== true){ $ERROR('#1: The Number prototype object has the property toLocaleString'); } diff --git a/test/built-ins/Number/prototype/S15.7.4_A3.4.js b/test/built-ins/Number/prototype/S15.7.4_A3.4.js index 11d7b1c40..76bb43fca 100644 --- a/test/built-ins/Number/prototype/S15.7.4_A3.4.js +++ b/test/built-ins/Number/prototype/S15.7.4_A3.4.js @@ -8,6 +8,6 @@ description: The test uses hasOwnProperty() method ---*/ //CHECK#1 -if (Number.prototype.hasOwnProperty("valueOf") !== true) { +if(Number.prototype.hasOwnProperty("valueOf") !== true){ $ERROR('#1: The Number prototype object has the property valueOf'); } diff --git a/test/built-ins/Number/prototype/S15.7.4_A3.5.js b/test/built-ins/Number/prototype/S15.7.4_A3.5.js index 5d54261f7..7ff9bccfd 100644 --- a/test/built-ins/Number/prototype/S15.7.4_A3.5.js +++ b/test/built-ins/Number/prototype/S15.7.4_A3.5.js @@ -8,6 +8,6 @@ description: The test uses hasOwnProperty() method ---*/ //CHECK#1 -if (Number.prototype.hasOwnProperty("toFixed") !== true) { +if(Number.prototype.hasOwnProperty("toFixed") !== true){ $ERROR('#1: The Number prototype object has the property toFixed'); } diff --git a/test/built-ins/Number/prototype/S15.7.4_A3.6.js b/test/built-ins/Number/prototype/S15.7.4_A3.6.js index 4860f866d..71efe0c73 100644 --- a/test/built-ins/Number/prototype/S15.7.4_A3.6.js +++ b/test/built-ins/Number/prototype/S15.7.4_A3.6.js @@ -8,6 +8,6 @@ description: The test uses hasOwnProperty() method ---*/ //CHECK#1 -if (Number.prototype.hasOwnProperty("toExponential") !== true) { +if(Number.prototype.hasOwnProperty("toExponential") !== true){ $ERROR('#1: The Number prototype object has the property toExponential'); } diff --git a/test/built-ins/Number/prototype/S15.7.4_A3.7.js b/test/built-ins/Number/prototype/S15.7.4_A3.7.js index edf58debf..fcd674d13 100644 --- a/test/built-ins/Number/prototype/S15.7.4_A3.7.js +++ b/test/built-ins/Number/prototype/S15.7.4_A3.7.js @@ -8,6 +8,6 @@ description: The test uses hasOwnProperty() method ---*/ //CHECK#1 -if (Number.prototype.hasOwnProperty("toPrecision") !== true) { +if(Number.prototype.hasOwnProperty("toPrecision") !== true){ $ERROR('#1: The Number prototype object has the property toPrecision'); } diff --git a/test/built-ins/Number/prototype/toExponential/range.js b/test/built-ins/Number/prototype/toExponential/range.js index f6f025f63..8560ade75 100644 --- a/test/built-ins/Number/prototype/toExponential/range.js +++ b/test/built-ins/Number/prototype/toExponential/range.js @@ -17,3 +17,5 @@ assert.throws(RangeError, () => (3).toExponential(-1)); assert.sameValue((3).toExponential(100), "3.0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000e+0"); assert.throws(RangeError, () => (3).toExponential(101)); + + diff --git a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.1_T01.js b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.1_T01.js index 37dd400ed..726ceadd1 100644 --- a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.1_T01.js +++ b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.1_T01.js @@ -10,62 +10,62 @@ description: calling on Number prototype object ---*/ //CHECK#1 -if (Number.prototype.toFixed() !== "0") { +if(Number.prototype.toFixed() !== "0"){ $ERROR('#1: Number.prototype.toFixed() === "0"'); } //CHECK#2 -if (Number.prototype.toFixed(0) !== "0") { +if(Number.prototype.toFixed(0) !== "0"){ $ERROR('#2: Number.prototype.toFixed(0) === "0"'); } //CHECK#3 -if (Number.prototype.toFixed(1) !== "0.0") { +if(Number.prototype.toFixed(1) !== "0.0"){ $ERROR('#3: Number.prototype.toFixed(1) === "0.0"'); } //CHECK#4 -if (Number.prototype.toFixed(1.1) !== "0.0") { +if(Number.prototype.toFixed(1.1) !== "0.0"){ $ERROR('#4: Number.prototype.toFixed(1.1) === "0.0"'); } //CHECK#5 -if (Number.prototype.toFixed(0.9) !== "0") { +if(Number.prototype.toFixed(0.9) !== "0"){ $ERROR('#5: Number.prototype.toFixed(0.9) === "0"'); } //CHECK#6 -if (Number.prototype.toFixed("1") !== "0.0") { +if(Number.prototype.toFixed("1") !== "0.0"){ $ERROR('#6: Number.prototype.toFixed("1") === "0.0"'); } //CHECK#7 -if (Number.prototype.toFixed("1.1") !== "0.0") { +if(Number.prototype.toFixed("1.1") !== "0.0"){ $ERROR('#7: Number.prototype.toFixed("1.1") === "0.0"'); } //CHECK#8 -if (Number.prototype.toFixed("0.9") !== "0") { +if(Number.prototype.toFixed("0.9") !== "0"){ $ERROR('#8: Number.prototype.toFixed("0.9") === "0"'); } //CHECK#9 -if (Number.prototype.toFixed(Number.NaN) !== "0") { +if(Number.prototype.toFixed(Number.NaN) !== "0"){ $ERROR('#9: Number.prototype.toFixed(Number.NaN) === "0"'); } //CHECK#10 -if (Number.prototype.toFixed("some string") !== "0") { +if(Number.prototype.toFixed("some string") !== "0"){ $ERROR('#9: Number.prototype.toFixed("some string") === "0"'); } //CHECK#11 -try { - if (Number.prototype.toFixed(-0.1) !== "0") { +try{ + if(Number.prototype.toFixed(-0.1) !== "0"){ $ERROR('#10: Number.prototype.toFixed(-0.1) === "0"'); } } -catch (e) { - $ERROR('#10: Number.prototype.toFixed(-0.1) should not throw ' + e); +catch(e){ + $ERROR('#10: Number.prototype.toFixed(-0.1) should not throw '+e); } diff --git a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.1_T02.js b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.1_T02.js index 7732b7ee5..00d8c8065 100644 --- a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.1_T02.js +++ b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.1_T02.js @@ -10,61 +10,61 @@ description: calling on Number object ---*/ //CHECK#1 -if ((new Number(1)).toFixed() !== "1") { +if((new Number(1)).toFixed() !== "1"){ $ERROR('#1: (new Number(1)).prototype.toFixed() === "1"'); } //CHECK#2 -if ((new Number(1)).toFixed(0) !== "1") { +if((new Number(1)).toFixed(0) !== "1"){ $ERROR('#2: (new Number(1)).prototype.toFixed(0) === "1"'); } //CHECK#3 -if ((new Number(1)).toFixed(1) !== "1.0") { +if((new Number(1)).toFixed(1) !== "1.0"){ $ERROR('#3: (new Number(1)).prototype.toFixed(1) === "1.0"'); } //CHECK#4 -if ((new Number(1)).toFixed(1.1) !== "1.0") { +if((new Number(1)).toFixed(1.1) !== "1.0"){ $ERROR('#4: (new Number(1)).toFixed(1.1) === "1.0"'); } //CHECK#5 -if ((new Number(1)).toFixed(0.9) !== "1") { +if((new Number(1)).toFixed(0.9) !== "1"){ $ERROR('#5: (new Number(1)).toFixed(0.9) === "1"'); } //CHECK#6 -if ((new Number(1)).toFixed("1") !== "1.0") { +if((new Number(1)).toFixed("1") !== "1.0"){ $ERROR('#6: (new Number(1)).toFixed("1") === "1.0"'); } //CHECK#7 -if ((new Number(1)).toFixed("1.1") !== "1.0") { +if((new Number(1)).toFixed("1.1") !== "1.0"){ $ERROR('#7: (new Number(1)).toFixed("1.1") === "1.0"'); } //CHECK#8 -if ((new Number(1)).toFixed("0.9") !== "1") { +if((new Number(1)).toFixed("0.9") !== "1"){ $ERROR('#8: (new Number(1)).toFixed("0.9") === "1"'); } //CHECK#9 -if ((new Number(1)).toFixed(Number.NaN) !== "1") { +if((new Number(1)).toFixed(Number.NaN) !== "1"){ $ERROR('#9: (new Number(1)).toFixed(Number.NaN) === "1"'); } //CHECK#10 -if ((new Number(1)).toFixed("some string") !== "1") { +if((new Number(1)).toFixed("some string") !== "1"){ $ERROR('#9: (new Number(1)).toFixed("some string") === "1"'); } //CHECK#10 -try { - if ((new Number(1)).toFixed(-0.1) !== "1") { +try{ + if((new Number(1)).toFixed(-0.1) !== "1"){ $ERROR('#10: (new Number(1)).toFixed(-0.1) === "1"'); } } -catch (e) { - $ERROR('#10: (new Number(1)).toFixed(-0.1) should not throw ' + e); +catch(e){ + $ERROR('#10: (new Number(1)).toFixed(-0.1) should not throw '+e); } diff --git a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.3_T01.js b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.3_T01.js index 7fc8f1485..ab98bf30c 100644 --- a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.3_T01.js +++ b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.3_T01.js @@ -8,62 +8,62 @@ description: NaN is computed by new Number("string") ---*/ //CHECK#1 -if ((new Number("a")).toFixed() !== "NaN") { +if((new Number("a")).toFixed() !== "NaN"){ $ERROR('#1: (new Number("a")).prototype.toFixed() === "NaN"'); } //CHECK#2 -if ((new Number("a")).toFixed(0) !== "NaN") { +if((new Number("a")).toFixed(0) !== "NaN"){ $ERROR('#2: (new Number("a")).prototype.toFixed(0) === "NaN"'); } //CHECK#3 -if ((new Number("a")).toFixed(1) !== "NaN") { +if((new Number("a")).toFixed(1) !== "NaN"){ $ERROR('#3: (new Number("a")).prototype.toFixed(1) === "NaN"'); } //CHECK#4 -if ((new Number("a")).toFixed(1.1) !== "NaN") { +if((new Number("a")).toFixed(1.1) !== "NaN"){ $ERROR('#4: (new Number("a")).toFixed(1.1) === "NaN"'); } //CHECK#5 -if ((new Number("a")).toFixed(0.9) !== "NaN") { +if((new Number("a")).toFixed(0.9) !== "NaN"){ $ERROR('#5: (new Number("a")).toFixed(0.9) === "NaN"'); } //CHECK#6 -if ((new Number("a")).toFixed("1") !== "NaN") { +if((new Number("a")).toFixed("1") !== "NaN"){ $ERROR('#6: (new Number("a")).toFixed("1") === "NaN"'); } //CHECK#7 -if ((new Number("a")).toFixed("1.1") !== "NaN") { +if((new Number("a")).toFixed("1.1") !== "NaN"){ $ERROR('#7: (new Number("a")).toFixed("1.1") === "NaN"'); } //CHECK#8 -if ((new Number("a")).toFixed("0.9") !== "NaN") { +if((new Number("a")).toFixed("0.9") !== "NaN"){ $ERROR('#8: (new Number("a")).toFixed("0.9") === "NaN"'); } //CHECK#9 -if ((new Number("a")).toFixed(Number.NaN) !== "NaN") { +if((new Number("a")).toFixed(Number.NaN) !== "NaN"){ $ERROR('#9: (new Number("a")).toFixed(Number.NaN) === "NaN"'); } //CHECK#10 -if ((new Number("a")).toFixed("some string") !== "NaN") { +if((new Number("a")).toFixed("some string") !== "NaN"){ $ERROR('#9: (new Number("a")).toFixed("some string") === "NaN"'); } //CHECK#10 -try { +try{ s = (new Number("a")).toFixed(Number.POSITIVE_INFINITY); $ERROR('#10: (new Number("a")).toFixed(Number.POSITIVE_INFINITY) should throw RangeError, not return NaN'); } -catch (e) { - if (!(e instanceof RangeError)) { - $ERROR('#10: (new Number("a")).toFixed(Number.POSITIVE_INFINITY) should throw RangeError, not ' + e); +catch(e){ + if(!(e instanceof RangeError)){ + $ERROR('#10: (new Number("a")).toFixed(Number.POSITIVE_INFINITY) should throw RangeError, not '+e); } } diff --git a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.3_T02.js b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.3_T02.js index cb96395d0..459fcd998 100644 --- a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.3_T02.js +++ b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.3_T02.js @@ -8,62 +8,62 @@ description: direct usage of NaN ---*/ //CHECK#1 -if (Number.NaN.toFixed() !== "NaN") { +if(Number.NaN.toFixed() !== "NaN"){ $ERROR('#1: Number.NaN.prototype.toFixed() === "NaN"'); } //CHECK#2 -if (Number.NaN.toFixed(0) !== "NaN") { +if(Number.NaN.toFixed(0) !== "NaN"){ $ERROR('#2: Number.NaN.prototype.toFixed(0) === "NaN"'); } //CHECK#3 -if (Number.NaN.toFixed(1) !== "NaN") { +if(Number.NaN.toFixed(1) !== "NaN"){ $ERROR('#3: Number.NaN.prototype.toFixed(1) === "NaN"'); } //CHECK#4 -if (Number.NaN.toFixed(1.1) !== "NaN") { +if(Number.NaN.toFixed(1.1) !== "NaN"){ $ERROR('#4: Number.NaN.toFixed(1.1) === "NaN"'); } //CHECK#5 -if (Number.NaN.toFixed(0.9) !== "NaN") { +if(Number.NaN.toFixed(0.9) !== "NaN"){ $ERROR('#5: Number.NaN.toFixed(0.9) === "NaN"'); } //CHECK#6 -if (Number.NaN.toFixed("1") !== "NaN") { +if(Number.NaN.toFixed("1") !== "NaN"){ $ERROR('#6: Number.NaN.toFixed("1") === "NaN"'); } //CHECK#7 -if (Number.NaN.toFixed("1.1") !== "NaN") { +if(Number.NaN.toFixed("1.1") !== "NaN"){ $ERROR('#7: Number.NaN.toFixed("1.1") === "NaN"'); } //CHECK#8 -if (Number.NaN.toFixed("0.9") !== "NaN") { +if(Number.NaN.toFixed("0.9") !== "NaN"){ $ERROR('#8: Number.NaN.toFixed("0.9") === "NaN"'); } //CHECK#9 -if (Number.NaN.toFixed(Number.NaN) !== "NaN") { +if(Number.NaN.toFixed(Number.NaN) !== "NaN"){ $ERROR('#9: Number.NaN.toFixed(Number.NaN) === "NaN"'); } //CHECK#10 -if (Number.NaN.toFixed("some string") !== "NaN") { +if(Number.NaN.toFixed("some string") !== "NaN"){ $ERROR('#9: Number.NaN.toFixed("some string") === "NaN"'); } //CHECK#10 -try { +try{ s = Number.NaN.toFixed(Number.POSITIVE_INFINITY); $ERROR('#10: Number.NaN.toFixed(Number.POSITIVE_INFINITY) should throw RangeError, not return NaN'); } -catch (e) { - if (!(e instanceof RangeError)) { - $ERROR('#10: Number.NaN.toFixed(Number.POSITIVE_INFINITY) should throw RangeError, not ' + e); +catch(e){ + if(!(e instanceof RangeError)){ + $ERROR('#10: Number.NaN.toFixed(Number.POSITIVE_INFINITY) should throw RangeError, not '+e); } } diff --git a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.4_T01.js b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.4_T01.js index e577c80f0..e2318bff2 100644 --- a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.4_T01.js +++ b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A1.4_T01.js @@ -8,62 +8,62 @@ description: x is 10^21 ---*/ //CHECK#1 -if ((new Number(1e21)).toFixed() !== String(1e21)) { +if((new Number(1e21)).toFixed() !== String(1e21)){ $ERROR('#1: (new Number(1e21)).prototype.toFixed() === String(1e21)'); } //CHECK#2 -if ((new Number(1e21)).toFixed(0) !== String(1e21)) { +if((new Number(1e21)).toFixed(0) !== String(1e21)){ $ERROR('#2: (new Number(1e21)).prototype.toFixed(0) === String(1e21)'); } //CHECK#3 -if ((new Number(1e21)).toFixed(1) !== String(1e21)) { +if((new Number(1e21)).toFixed(1) !== String(1e21)){ $ERROR('#3: (new Number(1e21)).prototype.toFixed(1) === String(1e21)'); } //CHECK#4 -if ((new Number(1e21)).toFixed(1.1) !== String(1e21)) { +if((new Number(1e21)).toFixed(1.1) !== String(1e21)){ $ERROR('#4: (new Number(1e21)).toFixed(1.1) === String(1e21)'); } //CHECK#5 -if ((new Number(1e21)).toFixed(0.9) !== String(1e21)) { +if((new Number(1e21)).toFixed(0.9) !== String(1e21)){ $ERROR('#5: (new Number(1e21)).toFixed(0.9) === String(1e21)'); } //CHECK#6 -if ((new Number(1e21)).toFixed("1") !== String(1e21)) { +if((new Number(1e21)).toFixed("1") !== String(1e21)){ $ERROR('#6: (new Number(1e21)).toFixed("1") === String(1e21)'); } //CHECK#7 -if ((new Number(1e21)).toFixed("1.1") !== String(1e21)) { +if((new Number(1e21)).toFixed("1.1") !== String(1e21)){ $ERROR('#7: (new Number(1e21)).toFixed("1.1") === String(1e21)'); } //CHECK#8 -if ((new Number(1e21)).toFixed("0.9") !== String(1e21)) { +if((new Number(1e21)).toFixed("0.9") !== String(1e21)){ $ERROR('#8: (new Number(1e21)).toFixed("0.9") === String(1e21)'); } //CHECK#9 -if ((new Number(1e21)).toFixed(Number.NaN) !== String(1e21)) { +if((new Number(1e21)).toFixed(Number.NaN) !== String(1e21)){ $ERROR('#9: (new Number(1e21)).toFixed(Number.NaN) === String(1e21)'); } //CHECK#10 -if ((new Number(1e21)).toFixed("some string") !== String(1e21)) { +if((new Number(1e21)).toFixed("some string") !== String(1e21)){ $ERROR('#9: (new Number(1e21)).toFixed("some string") === String(1e21)'); } //CHECK#10 -try { +try{ s = (new Number(1e21)).toFixed(Number.POSITIVE_INFINITY); $ERROR('#10: (new Number(1e21)).toFixed(Number.POSITIVE_INFINITY) should throw RangeError, not return NaN'); } -catch (e) { - if (!(e instanceof RangeError)) { - $ERROR('#10: (new Number(1e21)).toFixed(Number.POSITIVE_INFINITY) should throw RangeError, not ' + e); +catch(e){ + if(!(e instanceof RangeError)){ + $ERROR('#10: (new Number(1e21)).toFixed(Number.POSITIVE_INFINITY) should throw RangeError, not '+e); } } diff --git a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A2_T01.js b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A2_T01.js index ad7bf816c..280def376 100644 --- a/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A2_T01.js +++ b/test/built-ins/Number/prototype/toFixed/S15.7.4.5_A2_T01.js @@ -8,11 +8,11 @@ description: Checking Number prototype itself ---*/ //CHECK#1 -if (Number.prototype.toFixed.hasOwnProperty("length") !== true) { +if(Number.prototype.toFixed.hasOwnProperty("length") !== true){ $ERROR('#1: The length property of the toFixed method is 1'); } //CHECK#2 -if (Number.prototype.toFixed.length !== 1) { +if(Number.prototype.toFixed.length !== 1){ $ERROR('#2: The length property of the toFixed method is 1'); } diff --git a/test/built-ins/Number/prototype/toFixed/return-type.js b/test/built-ins/Number/prototype/toFixed/return-type.js index 106be090e..9bbfeeb86 100644 --- a/test/built-ins/Number/prototype/toFixed/return-type.js +++ b/test/built-ins/Number/prototype/toFixed/return-type.js @@ -7,4 +7,4 @@ description: > Number.prototype.toFixed returns a string value ---*/ -assert.sameValue(typeof(123.456).toFixed(), "string"); +assert.sameValue(typeof (123.456).toFixed(), "string"); diff --git a/test/built-ins/Number/prototype/toPrecision/range.js b/test/built-ins/Number/prototype/toPrecision/range.js index 5c5b39cb0..ddaed46e7 100644 --- a/test/built-ins/Number/prototype/toPrecision/range.js +++ b/test/built-ins/Number/prototype/toPrecision/range.js @@ -18,3 +18,4 @@ assert.throws(RangeError, () => (3).toPrecision(-10)); assert.sameValue((3).toPrecision(100), "3.000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000"); assert.throws(RangeError, () => (3).toPrecision(101)); + 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); } } diff --git a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A1_T01.js b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A1_T01.js index 0bb16d143..1345810ac 100644 --- a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A1_T01.js +++ b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A1_T01.js @@ -8,27 +8,27 @@ description: Call without argument ---*/ //CHECK#1 -if (Number.prototype.valueOf() !== 0) { +if(Number.prototype.valueOf() !== 0){ $ERROR('#1: Number.prototype.valueOf() === 0'); } //CHECK#2 -if ((new Number()).valueOf() !== 0) { +if((new Number()).valueOf() !== 0){ $ERROR('#2: (new Number()).valueOf() === 0'); } //CHECK#3 -if ((new Number(0)).valueOf() !== 0) { +if((new Number(0)).valueOf() !== 0){ $ERROR('#3: (new Number(0)).valueOf() === 0'); } //CHECK#4 -if ((new Number(-1)).valueOf() !== -1) { +if((new Number(-1)).valueOf() !== -1){ $ERROR('#4: (new Number(-1)).valueOf() === -1'); } //CHECK#5 -if ((new Number(1)).valueOf() !== 1) { +if((new Number(1)).valueOf() !== 1){ $ERROR('#5: (new Number(1)).valueOf() === 1'); } @@ -40,11 +40,11 @@ assert.sameValue( ); //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).valueOf() !== Number.POSITIVE_INFINITY) { +if((new Number(Number.POSITIVE_INFINITY)).valueOf() !== Number.POSITIVE_INFINITY){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).valueOf() === Infinity'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).valueOf() !== Number.NEGATIVE_INFINITY) { +if((new Number(Number.NEGATIVE_INFINITY)).valueOf() !== Number.NEGATIVE_INFINITY){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).valueOf() === -Infinity'); } diff --git a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A1_T02.js b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A1_T02.js index ff22bf71f..4f4a44389 100644 --- a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A1_T02.js +++ b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A1_T02.js @@ -8,27 +8,27 @@ description: calling with argument ---*/ //CHECK#1 -if (Number.prototype.valueOf("argument") !== 0) { +if(Number.prototype.valueOf("argument") !== 0){ $ERROR('#1: Number.prototype.valueOf("argument") === 0'); } //CHECK#2 -if ((new Number()).valueOf("argument") !== 0) { +if((new Number()).valueOf("argument") !== 0){ $ERROR('#2: (new Number()).valueOf("argument") === 0'); } //CHECK#3 -if ((new Number(0)).valueOf("argument") !== 0) { +if((new Number(0)).valueOf("argument") !== 0){ $ERROR('#3: (new Number(0)).valueOf("argument") === 0'); } //CHECK#4 -if ((new Number(-1)).valueOf("argument") !== -1) { +if((new Number(-1)).valueOf("argument") !== -1){ $ERROR('#4: (new Number(-1)).valueOf("argument") === -1'); } //CHECK#5 -if ((new Number(1)).valueOf("argument") !== 1) { +if((new Number(1)).valueOf("argument") !== 1){ $ERROR('#5: (new Number(1)).valueOf("argument") === 1'); } @@ -40,11 +40,11 @@ assert.sameValue( ); //CHECK#7 -if ((new Number(Number.POSITIVE_INFINITY)).valueOf("argument") !== Number.POSITIVE_INFINITY) { +if((new Number(Number.POSITIVE_INFINITY)).valueOf("argument") !== Number.POSITIVE_INFINITY){ $ERROR('#7: (new Number(Number.POSITIVE_INFINITY)).valueOf("argument") === Infinity'); } //CHECK#8 -if ((new Number(Number.NEGATIVE_INFINITY)).valueOf("argument") !== Number.NEGATIVE_INFINITY) { +if((new Number(Number.NEGATIVE_INFINITY)).valueOf("argument") !== Number.NEGATIVE_INFINITY){ $ERROR('#8: (new Number(Number.NEGATIVE_INFINITY)).valueOf("argument") === -Infinity'); } diff --git a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T01.js b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T01.js index dc32174b4..eae012d63 100644 --- a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T01.js +++ b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T01.js @@ -11,27 +11,27 @@ description: transferring to the String objects ---*/ //CHECK#1 -try { +try{ var s1 = new String(); s1.valueOf = Number.prototype.valueOf; - var v1 = s1.valueOf(); + var v1 = s1.valueOf(); $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError'); } -catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError, not ' + e); +catch(e){ + if(!(e instanceof TypeError)){ + $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError, not '+e); } } //CHECK#2 -try { +try{ var s2 = new String(); s2.myValueOf = Number.prototype.valueOf; - var v2 = s2.myValueOf(); + var v2 = s2.myValueOf(); $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError'); } -catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError, not ' + e); +catch(e){ + if(!(e instanceof TypeError)){ + $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError, not '+e); } } diff --git a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T02.js b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T02.js index 61c6c6369..56521db0a 100644 --- a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T02.js +++ b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T02.js @@ -11,27 +11,27 @@ description: transferring to the Boolean objects ---*/ //CHECK#1 -try { +try{ var s1 = new Boolean(); s1.valueOf = Number.prototype.valueOf; - var v1 = s1.valueOf(); + var v1 = s1.valueOf(); $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError'); } -catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError, not ' + e); +catch(e){ + if(!(e instanceof TypeError)){ + $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError, not '+e); } } //CHECK#2 -try { +try{ var s2 = new Boolean(); s2.myValueOf = Number.prototype.valueOf; - var v2 = s2.myValueOf(); + var v2 = s2.myValueOf(); $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError'); } -catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError, not ' + e); +catch(e){ + if(!(e instanceof TypeError)){ + $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError, not '+e); } } diff --git a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T03.js b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T03.js index 503ca141e..5d7a68dcd 100644 --- a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T03.js +++ b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T03.js @@ -11,27 +11,27 @@ description: transferring to the Date objects ---*/ //CHECK#1 -try { +try{ var s1 = new Date(); s1.valueOf = Number.prototype.valueOf; - var v1 = s1.valueOf(); + var v1 = s1.valueOf(); $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError'); } -catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError, not ' + e); +catch(e){ + if(!(e instanceof TypeError)){ + $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError, not '+e); } } //CHECK#2 -try { +try{ var s2 = new Date(); s2.myValueOf = Number.prototype.valueOf; - var v2 = s2.myValueOf(); + var v2 = s2.myValueOf(); $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError'); } -catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError, not ' + e); +catch(e){ + if(!(e instanceof TypeError)){ + $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError, not '+e); } } diff --git a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T04.js b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T04.js index af1438ba8..e6011f8d3 100644 --- a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T04.js +++ b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T04.js @@ -11,27 +11,27 @@ description: transferring to the Object objects ---*/ //CHECK#1 -try { +try{ var s1 = new Object(); s1.valueOf = Number.prototype.valueOf; - var v1 = s1.valueOf(); + var v1 = s1.valueOf(); $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError'); } -catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError, not ' + e); +catch(e){ + if(!(e instanceof TypeError)){ + $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError, not '+e); } } //CHECK#2 -try { +try{ var s2 = new Object(); s2.myValueOf = Number.prototype.valueOf; - var v2 = s2.myValueOf(); + var v2 = s2.myValueOf(); $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError'); } -catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError, not ' + e); +catch(e){ + if(!(e instanceof TypeError)){ + $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError, not '+e); } } diff --git a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T05.js b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T05.js index eb862fd33..625dc68de 100644 --- a/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_T05.js +++ b/test/built-ins/Number/prototype/valueOf/S15.7.4.4_A2_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.valueOf = Number.prototype.valueOf; - var v1 = s1.valueOf(); + var v1 = s1.valueOf(); $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError'); } -catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError, not ' + e); +catch(e){ + if(!(e instanceof TypeError)){ + $ERROR('#1: Number.prototype.valueOf on not a Number object should throw TypeError, not '+e); } } //CHECK#2 -try { - var s2 = { - x: 1 - }; +try{ + var s2 = {x: 1}; s2.myValueOf = Number.prototype.valueOf; - var v2 = s2.myValueOf(); + var v2 = s2.myValueOf(); $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError'); } -catch (e) { - if (!(e instanceof TypeError)) { - $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError, not ' + e); +catch(e){ + if(!(e instanceof TypeError)){ + $ERROR('#2: Number.prototype.valueOf on not a Number object should throw TypeError, not '+e); } } |