diff options
Diffstat (limited to 'test/suite/ch09/9.3')
49 files changed, 302 insertions, 374 deletions
diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A1.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A1.js index 35b235fa3..cc5a7644f 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A1.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The MV of StringNumericLiteral ::: [empty] is 0 - * - * @path ch09/9.3/9.3.1/S9.3.1_A1.js - * @description Number('') convert to Number by explicit transformation - */ +/*--- +info: "The MV of StringNumericLiteral ::: [empty] is 0" +description: Number('') convert to Number by explicit transformation +---*/ // CHECK#1 if (Number("") !== 0) { @@ -16,4 +14,3 @@ if (Number("") !== 0) { $ERROR('#1.2: Number("") == +0. Actual: -0'); } } - diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A10.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A10.js index 1f7d3f958..f9652d4f1 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A10.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A10.js @@ -1,17 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The MV of StrUnsignedDecimalLiteral:::. DecimalDigits is the - * MV of DecimalDigits times 10<sup><small>-n</small></sup>, where n is the - * number of characters in DecimalDigits - * - * @path ch09/9.3/9.3.1/S9.3.1_A10.js - * @description Compare Number('.12345') with +('12345')*1e-5 - */ +/*--- +info: > + The MV of StrUnsignedDecimalLiteral:::. DecimalDigits is the + MV of DecimalDigits times 10<sup><small>-n</small></sup>, where n is the + number of characters in DecimalDigits +description: Compare Number('.12345') with +('12345')*1e-5 +---*/ // CHECK#1 if (Number(".12345") !== +("12345")*1e-5) { $ERROR('#1: Number(".12345") === +("12345")*1e-5'); } - diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A11.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A11.js index 9f58e16f2..b087f180b 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A11.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A11.js @@ -1,15 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The MV of StrUnsignedDecimalLiteral:::. DecimalDigits ExponentPart - * is the MV of DecimalDigits times 10<sup><small>e-n</small></sup>, where n is - * the number of characters in DecimalDigits and e is the MV of ExponentPart - * - * @path ch09/9.3/9.3.1/S9.3.1_A11.js - * @description Compare Number('.12345e6') with +('12345')*1e1, - * and Number('.12345e-3') !== Number('12345')*1e-8 - */ +/*--- +info: > + The MV of StrUnsignedDecimalLiteral:::. DecimalDigits ExponentPart + is the MV of DecimalDigits times 10<sup><small>e-n</small></sup>, where n is + the number of characters in DecimalDigits and e is the MV of ExponentPart +description: > + Compare Number('.12345e6') with +('12345')*1e1, and + Number('.12345e-3') !== Number('12345')*1e-8 +---*/ // CHECK#1 if (Number(".12345e6") !== +("12345")*1e1) { @@ -20,4 +20,3 @@ if (Number(".12345e6") !== +("12345")*1e1) { if (Number(".12345e-3") !== Number("12345")*1e-8) { $ERROR('#2: Number(".12345e-3") === Number("12345")*1e-8'); } - diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A12.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A12.js index 201040946..cf642f4dd 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A12.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A12.js @@ -1,14 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The MV of StrUnsignedDecimalLiteral::: DecimalDigits ExponentPart - * is the MV of DecimalDigits times 10<sup><small>e</small></sup>, where e is the MV of ExponentPart - * - * @path ch09/9.3/9.3.1/S9.3.1_A12.js - * @description Compare Number('12345e6') with +('12345')*1e1, - * and Number('12345e-6') !== Number('12345')*1e-6 - */ +/*--- +info: > + The MV of StrUnsignedDecimalLiteral::: DecimalDigits ExponentPart + is the MV of DecimalDigits times 10<sup><small>e</small></sup>, where e is the MV of ExponentPart +description: > + Compare Number('12345e6') with +('12345')*1e1, and + Number('12345e-6') !== Number('12345')*1e-6 +---*/ // CHECK#1 if (Number("12345e6") !== +("12345")*1e6) { @@ -19,4 +19,3 @@ if (Number("12345e6") !== +("12345")*1e6) { if (Number("12345e-6") !== Number("12345")*1e-6) { $ERROR('#2: Number("12345e-6") === Number("12345")*1e-6'); } - diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A13.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A13.js index 8d51f4b02..0ce6a4aca 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A13.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A13.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The MV of DecimalDigits ::: DecimalDigits DecimalDigit is - * (the MV of DecimalDigits times 10) plus the MV of DecimalDigit - * - * @path ch09/9.3/9.3.1/S9.3.1_A13.js - * @description Compare '12' with Number("1")*10+Number("2") and analogous - */ +/*--- +info: > + The MV of DecimalDigits ::: DecimalDigits DecimalDigit is + (the MV of DecimalDigits times 10) plus the MV of DecimalDigit +description: Compare '12' with Number("1")*10+Number("2") and analogous +---*/ // CHECK#1 if (+("12") !== Number("1")*10+Number("2")) { @@ -23,4 +22,3 @@ if (Number("123") !== Number("12")*10+Number("3")) { if (Number("1234") !== Number("123")*10+Number("4")) { $ERROR('#2: Number("1234") === Number("123")*10+Number("4")'); } - diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A14.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A14.js index 4ed80b082..96de392c6 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A14.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A14.js @@ -1,15 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The MV of SignedInteger ::: + DecimalDigits is the MV of DecimalDigits - * - * @path ch09/9.3/9.3.1/S9.3.1_A14.js - * @description Compare Number('+1234567890') with +('1234567890') - */ +/*--- +info: "The MV of SignedInteger ::: + DecimalDigits is the MV of DecimalDigits" +description: Compare Number('+1234567890') with +('1234567890') +---*/ // CHECK#1 if (Number("+1234567890") !== +("1234567890")) { $ERROR('#1: Number("+1234567890") === +("1234567890")'); } - diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A15.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A15.js index d0ba80b6e..2d69b10ce 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A15.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A15.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The MV of SignedInteger ::: - DecimalDigits is the negative of the MV of DecimalDigits - * - * @path ch09/9.3/9.3.1/S9.3.1_A15.js - * @description Compare -Number('1234567890') with ('-1234567890') - */ +/*--- +info: > + The MV of SignedInteger ::: - DecimalDigits is the negative of the MV of + DecimalDigits +description: Compare -Number('1234567890') with ('-1234567890') +---*/ // CHECK#1 if (+("-1234567890") !== -Number("1234567890")) { $ERROR('#1: +("-1234567890") === -Number("1234567890")'); } - diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A16.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A16.js index 6163fbb4a..6ca56acaf 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A16.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A16.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The MV of DecimalDigit ::: 0 or of HexDigit ::: 0 is 0 - * - * @path ch09/9.3/9.3.1/S9.3.1_A16.js - * @description Compare Number('0x0') and Number('0X0') with 0 - */ +/*--- +info: "The MV of DecimalDigit ::: 0 or of HexDigit ::: 0 is 0" +description: Compare Number('0x0') and Number('0X0') with 0 +---*/ // CHECK#1 if (Number("0") !== 0) { @@ -22,4 +20,3 @@ if (+("0x0") !== 0) { if (Number("0X0") !== 0) { $ERROR('#3: Number("0X0") === 0. Actual: ' + (Number("0X0"))); } - diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A17.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A17.js index d4b72bbf5..e97e056f6 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A17.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A17.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The MV of DecimalDigit ::: 1 or of HexDigit ::: 1 is 1 - * - * @path ch09/9.3/9.3.1/S9.3.1_A17.js - * @description Compare Number('0x1') and Number('0X1') with 1 - */ +/*--- +info: "The MV of DecimalDigit ::: 1 or of HexDigit ::: 1 is 1" +description: Compare Number('0x1') and Number('0X1') with 1 +---*/ // CHECK#1 if (Number("1") !== 1) { @@ -22,4 +20,3 @@ if (Number("0x1") !== 1) { if (+("0X1") !== 1) { $ERROR('#3: +("0X1") === 1. Actual: ' + (+("0X1"))); } - diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A18.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A18.js index b4375494c..b84445b7b 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A18.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A18.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The MV of DecimalDigit ::: 2 or of HexDigit ::: 2 is 2 - * - * @path ch09/9.3/9.3.1/S9.3.1_A18.js - * @description Compare Number('0x2') and Number('0X2') with 2 - */ +/*--- +info: "The MV of DecimalDigit ::: 2 or of HexDigit ::: 2 is 2" +description: Compare Number('0x2') and Number('0X2') with 2 +---*/ // CHECK#1 if (+("2") !== 2) { @@ -22,4 +20,3 @@ if (Number("0x2") !== 2) { if (Number("0X2") !== 2) { $ERROR('#3: Number("0X2") === 2. Actual: ' + (Number("0X2"))); } - diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A19.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A19.js index 0abc0200a..fe7f31015 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A19.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A19.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The MV of DecimalDigit ::: 3 or of HexDigit ::: 3 is 3 - * - * @path ch09/9.3/9.3.1/S9.3.1_A19.js - * @description Compare Number('0x3') and Number('0X3') with 3 - */ +/*--- +info: "The MV of DecimalDigit ::: 3 or of HexDigit ::: 3 is 3" +description: Compare Number('0x3') and Number('0X3') with 3 +---*/ // CHECK#1 if (Number("3") !== 3) { @@ -22,4 +20,3 @@ if (+("0x3") !== 3) { if (Number("0X3") !== 3) { $ERROR('#3: Number("0X3") === 3. Actual: ' + (Number("0X3"))); } - diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A2.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A2.js index f9bb01465..25ce57f32 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A2.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A2.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The MV of StringNumericLiteral ::: StrWhiteSpace is 0 - * - * @path ch09/9.3/9.3.1/S9.3.1_A2.js - * @description Strings with various WhiteSpaces convert to Number by explicit transformation - */ +/*--- +info: "The MV of StringNumericLiteral ::: StrWhiteSpace is 0" +description: > + Strings with various WhiteSpaces convert to Number by explicit + transformation +---*/ // CHECK#1 if (Number("\u0009\u000C\u0020\u00A0\u000B\u000A\u000D\u2028\u2029\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000") !== 0) { @@ -286,4 +286,3 @@ if (Number("\u3000") !== 0) { $ERROR('#31.2: Number("\\u3000") === +0. Actual: -0'); } } - diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A20.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A20.js index 78689d42d..cec898d2e 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A20.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A20.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The MV of DecimalDigit ::: 4 or of HexDigit ::: 4 is 4 - * - * @path ch09/9.3/9.3.1/S9.3.1_A20.js - * @description Compare Number('0x4') and Number('0X4') with 4 - */ +/*--- +info: "The MV of DecimalDigit ::: 4 or of HexDigit ::: 4 is 4" +description: Compare Number('0x4') and Number('0X4') with 4 +---*/ // CHECK#1 if (Number("4") !== 4) { @@ -22,4 +20,3 @@ if (Number("0x4") !== 4) { if (+("0X4") !== 4) { $ERROR('#3: +("0X4") === 4. Actual: ' + (+("0X4"))); } - diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A21.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A21.js index de8fe9fe1..3902945a7 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A21.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A21.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The MV of DecimalDigit ::: 5 or of HexDigit ::: 5 is 5 - * - * @path ch09/9.3/9.3.1/S9.3.1_A21.js - * @description Compare Number('0x5') and Number('0X5') with 5 - */ +/*--- +info: "The MV of DecimalDigit ::: 5 or of HexDigit ::: 5 is 5" +description: Compare Number('0x5') and Number('0X5') with 5 +---*/ // CHECK#1 if (+("5") !== 5) { @@ -22,4 +20,3 @@ if (Number("0x5") !== 5) { if (Number("0X5") !== 5) { $ERROR('#3: Number("0X5") === 5. Actual: ' + (Number("0X5"))); } - diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A22.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A22.js index 02aa703a3..6ac471bcb 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A22.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A22.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The MV of DecimalDigit ::: 6 or of HexDigit ::: 6 is 6 - * - * @path ch09/9.3/9.3.1/S9.3.1_A22.js - * @description Compare Number('0x6') and Number('0X6') with 6 - */ +/*--- +info: "The MV of DecimalDigit ::: 6 or of HexDigit ::: 6 is 6" +description: Compare Number('0x6') and Number('0X6') with 6 +---*/ // CHECK#1 if (Number("6") !== 6) { @@ -22,4 +20,3 @@ if (+("0x6") !== 6) { if (Number("0X6") !== 6) { $ERROR('#3: Number("0X6") === 6. Actual: ' + (Number("0X6"))); } - diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A23.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A23.js index d1745156d..c2e60f21e 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A23.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A23.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The MV of DecimalDigit ::: 7 or of HexDigit ::: 7 is 7 - * - * @path ch09/9.3/9.3.1/S9.3.1_A23.js - * @description Compare Number('0x7') and Number('0X7') with 7 - */ +/*--- +info: "The MV of DecimalDigit ::: 7 or of HexDigit ::: 7 is 7" +description: Compare Number('0x7') and Number('0X7') with 7 +---*/ // CHECK#1 if (Number("7") !== 7) { @@ -22,4 +20,3 @@ if (Number("0x7") !== 7) { if (+("0X7") !== 7) { $ERROR('#3: +("0X7") === 7. Actual: ' + (+("0X7"))); } - diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A24.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A24.js index 91409bead..b6c056c3a 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A24.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A24.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The MV of DecimalDigit ::: 8 or of HexDigit ::: 8 is 8 - * - * @path ch09/9.3/9.3.1/S9.3.1_A24.js - * @description Compare Number('0x8') and Number('0X8') with 8 - */ +/*--- +info: "The MV of DecimalDigit ::: 8 or of HexDigit ::: 8 is 8" +description: Compare Number('0x8') and Number('0X8') with 8 +---*/ // CHECK#1 if (+("8") !== 8) { @@ -22,4 +20,3 @@ if (Number("0x8") !== 8) { if (Number("0X8") !== 8) { $ERROR('#3: Number("0X8") === 8. Actual: ' + (Number("0X8"))); } - diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A25.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A25.js index 761ceb443..c76ef6754 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A25.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A25.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The MV of DecimalDigit ::: 9 or of HexDigit ::: 9 is 9 - * - * @path ch09/9.3/9.3.1/S9.3.1_A25.js - * @description Compare Number('0x9') and Number('0X9') with 9 - */ +/*--- +info: "The MV of DecimalDigit ::: 9 or of HexDigit ::: 9 is 9" +description: Compare Number('0x9') and Number('0X9') with 9 +---*/ // CHECK#1 if (Number("9") !== 9) { @@ -22,4 +20,3 @@ if (+("0x9") !== 9) { if (Number("0X9") !== 9) { $ERROR('#3: Number("0X9") === 9. Actual: ' + (Number("0X9"))); } - diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A26.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A26.js index 404203f59..097364d13 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A26.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A26.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The MV of HexDigit ::: a or of HexDigit ::: A is 10 - * - * @path ch09/9.3/9.3.1/S9.3.1_A26.js - * @description Compare Number('0xA'), Number('0XA'), Number('0xa') and Number('0Xa') with 10 - */ +/*--- +info: "The MV of HexDigit ::: a or of HexDigit ::: A is 10" +description: > + Compare Number('0xA'), Number('0XA'), Number('0xa') and + Number('0Xa') with 10 +---*/ // CHECK#1 if (Number("0xa") !== 10) { @@ -27,4 +27,3 @@ if (Number("0Xa") !== 10) { if (+("0XA") !== 10) { $ERROR('#4: +("0XA") === 10. Actual: ' + (+("0XA"))); } - diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A27.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A27.js index 67e6a6e5f..a1188bfff 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A27.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A27.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The MV of HexDigit ::: b or of HexDigit ::: B is 11 - * - * @path ch09/9.3/9.3.1/S9.3.1_A27.js - * @description Compare Number('0xB'), Number('0XB'), Number('0xb') and Number('0Xb') with 11 - */ +/*--- +info: "The MV of HexDigit ::: b or of HexDigit ::: B is 11" +description: > + Compare Number('0xB'), Number('0XB'), Number('0xb') and + Number('0Xb') with 11 +---*/ // CHECK#1 if (Number("0xb") !== 11) { @@ -27,4 +27,3 @@ if (+("0Xb") !== 11) { if (Number("0XB") !== 11) { $ERROR('#4: Number("0XB") === 11. Actual: ' + (Number("0XB"))); } - diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A28.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A28.js index d29b8c289..26d3f9f5a 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A28.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A28.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The MV of HexDigit ::: c or of HexDigit ::: C is 12 - * - * @path ch09/9.3/9.3.1/S9.3.1_A28.js - * @description Compare Number('0xC'), Number('0XC'), Number('0xc') and Number('0Xc') with 12 - */ +/*--- +info: "The MV of HexDigit ::: c or of HexDigit ::: C is 12" +description: > + Compare Number('0xC'), Number('0XC'), Number('0xc') and + Number('0Xc') with 12 +---*/ // CHECK#1 if (Number("0xc") !== 12) { @@ -27,4 +27,3 @@ if (Number("0Xc") !== 12) { if (Number("0XC") !== 12) { $ERROR('#4: Number("0XC") === 12. Actual: ' + (Number("0XC"))); } - diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A29.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A29.js index 88473af85..018544dd1 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A29.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A29.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The MV of HexDigit ::: d or of HexDigit ::: D is 13 - * - * @path ch09/9.3/9.3.1/S9.3.1_A29.js - * @description Compare Number('0xD'), Number('0XD'), Number('0xd') and Number('0Xd') with 13 - */ +/*--- +info: "The MV of HexDigit ::: d or of HexDigit ::: D is 13" +description: > + Compare Number('0xD'), Number('0XD'), Number('0xd') and + Number('0Xd') with 13 +---*/ // CHECK#1 if (+("0xd") !== 13) { @@ -27,4 +27,3 @@ if (Number("0Xd") !== 13) { if (Number("0XD") !== 13) { $ERROR('#4: Number("0XD") === 13. Actual: ' + (Number("0XD"))); } - diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A30.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A30.js index b94bacbd7..24c7de18c 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A30.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A30.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The MV of HexDigit ::: e or of HexDigit ::: E is 14 - * - * @path ch09/9.3/9.3.1/S9.3.1_A30.js - * @description Compare Number('0xE'), Number('0XE'), Number('0xe') and Number('0Xe') with 14 - */ +/*--- +info: "The MV of HexDigit ::: e or of HexDigit ::: E is 14" +description: > + Compare Number('0xE'), Number('0XE'), Number('0xe') and + Number('0Xe') with 14 +---*/ // CHECK#1 if (Number("0xe") !== 14) { @@ -27,4 +27,3 @@ if (Number("0Xe") !== 14) { if (+("0XE") !== 14) { $ERROR('#4: +("0XE") === 14. Actual: ' + (+("0XE"))); } - diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A31.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A31.js index f5f151b76..453940784 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A31.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A31.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The MV of HexDigit ::: f or of HexDigit ::: F is 15 - * - * @path ch09/9.3/9.3.1/S9.3.1_A31.js - * @description Compare Number('0xF'), Number('0XF'), Number('0xf') and Number('0Xf') with 15 - */ +/*--- +info: "The MV of HexDigit ::: f or of HexDigit ::: F is 15" +description: > + Compare Number('0xF'), Number('0XF'), Number('0xf') and + Number('0Xf') with 15 +---*/ // CHECK#1 if (Number("0xf") !== 15) { @@ -27,4 +27,3 @@ if (+("0Xf") !== 15) { if (Number("0XF") !== 15) { $ERROR('#4: Number("0XF") === 15. Actual: ' + (Number("0XF"))); } - diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A32.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A32.js index 700feb717..5c29066f7 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A32.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A32.js @@ -1,15 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Once the exact MV for a string numeric literal has been - * determined, it is then rounded to a value of the Number type with 20 - * significant digits by replacing each significant digit after the 20th - * with a 0 digit or the number value - * - * @path ch09/9.3/9.3.1/S9.3.1_A32.js - * @description Use various long numbers, for example, 1234567890.1234567890 - */ +/*--- +info: > + Once the exact MV for a string numeric literal has been + determined, it is then rounded to a value of the Number type with 20 + significant digits by replacing each significant digit after the 20th + with a 0 digit or the number value +description: Use various long numbers, for example, 1234567890.1234567890 +---*/ // CHECK#1 if (Number("1234567890.1234567890") !== 1234567890.1234567890) { @@ -35,4 +34,3 @@ if (Number("0.12345678901234567890") !== 0.123456789012345678) { if (Number("00.12345678901234567890") !== 0.123456789012345678) { $ERROR('#4: Number("00.12345678901234567890") === 0.123456789012345678. Actual: ' + (Number("00.12345678901234567890"))); } - diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A3_T1.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A3_T1.js index 304f5ba4e..de508381c 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A3_T1.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A3_T1.js @@ -1,12 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The MV of StringNumericLiteral ::: StrWhiteSpaceopt StrNumericLiteral StrWhiteSpaceopt is the MV of StrNumericLiteral, no matter whether white space is present or not - * - * @path ch09/9.3/9.3.1/S9.3.1_A3_T1.js - * @description static string - */ +/*--- +info: > + The MV of StringNumericLiteral ::: StrWhiteSpaceopt StrNumericLiteral + StrWhiteSpaceopt is the MV of StrNumericLiteral, no matter whether white + space is present or not +description: static string +---*/ // CHECK#1 if (Number("\u0009\u000C\u0020\u00A0\u000B\u000A\u000D\u2028\u2029\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000") !== Number("")) { @@ -27,4 +28,3 @@ if (!(+("\u0009\u000C\u0020\u00A0\u000B\u000A\u000D\u2028\u2029\u1680\u180E\u200 if (!(Number("\u0009\u000C\u0020\u00A0\u000B\u000A\u000D\u2028\u2029\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000-Infinity\u0009\u000C\u0020\u00A0\u000B\u000A\u000D\u2028\u2029\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000") == Number(-"Infinity"))) { $ERROR('#4: Number("\\u0009\\u000C\\u0020\\u00A0\\u000B\\u000A\\u000D\\u2028\\u2029\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000-Infinity\\u0009\\u000C\\u0020\\u00A0\\u000B\\u000A\\u000D\\u2028\\u2029\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000") == Number("-Infinity")'); } - diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A3_T2.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A3_T2.js index 0969dd9bb..42b007473 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A3_T2.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A3_T2.js @@ -1,12 +1,13 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The MV of StringNumericLiteral ::: StrWhiteSpaceopt StrNumericLiteral StrWhiteSpaceopt is the MV of StrNumericLiteral, no matter whether white space is present or not - * - * @path ch09/9.3/9.3.1/S9.3.1_A3_T2.js - * @description dynamic string - */ +/*--- +info: > + The MV of StringNumericLiteral ::: StrWhiteSpaceopt StrNumericLiteral + StrWhiteSpaceopt is the MV of StrNumericLiteral, no matter whether white + space is present or not +description: dynamic string +---*/ function dynaString(s1, s2){ return String(s1)+String(s2); @@ -31,4 +32,3 @@ if (!(Number(dynaString("\u0009\u000C\u0020\u00A0\u000B\u000A\u000D\u2028\u2029I if (!(Number(dynaString("\u0009\u000C\u0020\u00A0\u000B\u000A\u000D\u2028\u2029-Infi", "nity\u0009\u000C\u0020\u00A0\u000B\u000A\u000D\u2028\u2029\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000")) == Number(-"Infinity"))) { $ERROR('#4: Number("\\u0009\\u000C\\u0020\\u00A0\\u000B\\u000A\\u000D\\u2028\\u2029-Infi"+"nity\\u0009\\u000C\\u0020\\u00A0\\u000B\\u000A\\u000D\\u2028\\u2029\\u1680\\u180E\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200A\\u202F\\u205F\\u3000") == Number("-Infinity")'); } - diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A4_T1.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A4_T1.js index 8d2051140..fdb0c5051 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A4_T1.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A4_T1.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The MV of StrDecimalLiteral::: + StrUnsignedDecimalLiteral is the MV of StrUnsignedDecimalLiteral - * - * @path ch09/9.3/9.3.1/S9.3.1_A4_T1.js - * @description Compare Number('+any_number') with Number('any_number') - */ +/*--- +info: > + The MV of StrDecimalLiteral::: + StrUnsignedDecimalLiteral is the MV of + StrUnsignedDecimalLiteral +description: Compare Number('+any_number') with Number('any_number') +---*/ // CHECK#1 if (Number("+0") !== Number("0")) { @@ -47,4 +47,3 @@ if (Number("+1234.5678e-90") !== Number("1234.5678e-90")) { if (Number("+1234.5678E-90") !== Number("1234.5678E-90")) { $ERROR('#8: Number("+1234.5678E-90") === Number("1234.5678E-90")'); } - diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A4_T2.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A4_T2.js index e10d517ce..92517cdc3 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A4_T2.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A4_T2.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The MV of StrDecimalLiteral::: + StrUnsignedDecimalLiteral is the MV of StrUnsignedDecimalLiteral - * - * @path ch09/9.3/9.3.1/S9.3.1_A4_T2.js - * @description Compare Number('+' + 'any_number') with Number('any_number') - */ +/*--- +info: > + The MV of StrDecimalLiteral::: + StrUnsignedDecimalLiteral is the MV of + StrUnsignedDecimalLiteral +description: Compare Number('+' + 'any_number') with Number('any_number') +---*/ function dynaString(s1, s2){ return String(s1)+String(s2); @@ -51,4 +51,3 @@ if (Number(dynaString("+1234.", "5678e-90")) !== Number("1234.5678e-90")) { if (Number(dynaString("+1234.", "5678E-90")) !== Number("1234.5678E-90")) { $ERROR('#8: Number("+1234."+"5678E-90") === Number("1234.5678E-90")'); } - diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A5_T1.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A5_T1.js index b6bb8137d..5f8abc8bc 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A5_T1.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A5_T1.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The MV of StrDecimalLiteral::: - StrUnsignedDecimalLiteral is the negative - * of the MV of StrUnsignedDecimalLiteral. (the negative of this 0 is also 0) - * - * @path ch09/9.3/9.3.1/S9.3.1_A5_T1.js - * @description Compare Number('-any_number') with -Number('any_number') - */ +/*--- +info: > + The MV of StrDecimalLiteral::: - StrUnsignedDecimalLiteral is the negative + of the MV of StrUnsignedDecimalLiteral. (the negative of this 0 is also 0) +description: Compare Number('-any_number') with -Number('any_number') +---*/ // CHECK#1 if (Number("-0") !== -Number("0")) { @@ -58,4 +57,3 @@ if (Number("-1234.5678E-90") !== -Number("1234.5678E-90")) { if (Number("-Infinity") !== Number.NEGATIVE_INFINITY) { $ERROR('#3: Number("-Infinity") === Number.NEGATIVE_INFINITY'); } - diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A5_T2.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A5_T2.js index 47bc6549e..d2f6576c6 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A5_T2.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A5_T2.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The MV of StrDecimalLiteral::: - StrUnsignedDecimalLiteral is the negative - * of the MV of StrUnsignedDecimalLiteral. (the negative of this 0 is also 0) - * - * @path ch09/9.3/9.3.1/S9.3.1_A5_T2.js - * @description Compare Number('-[or +]any_number') with -[or without -]any_number) - */ +/*--- +info: > + The MV of StrDecimalLiteral::: - StrUnsignedDecimalLiteral is the negative + of the MV of StrUnsignedDecimalLiteral. (the negative of this 0 is also 0) +description: Compare Number('-[or +]any_number') with -[or without -]any_number) +---*/ // CHECK#1 if (Number("1") !== 1) { @@ -143,4 +142,3 @@ if (Number("+9") !== 9) { if (Number("-9") !== -9) { $ERROR('#27: Number("-9") === -9'); } - diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A5_T3.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A5_T3.js index c062e198f..71a9a0c60 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A5_T3.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A5_T3.js @@ -1,13 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The MV of StrDecimalLiteral::: - StrUnsignedDecimalLiteral is the negative - * of the MV of StrUnsignedDecimalLiteral. (the negative of this 0 is also 0) - * - * @path ch09/9.3/9.3.1/S9.3.1_A5_T3.js - * @description Compare Number('-' + 'any_number') with -Number('any_number') - */ +/*--- +info: > + The MV of StrDecimalLiteral::: - StrUnsignedDecimalLiteral is the negative + of the MV of StrUnsignedDecimalLiteral. (the negative of this 0 is also 0) +description: Compare Number('-' + 'any_number') with -Number('any_number') +---*/ function dynaString(s1, s2){ return String(s1)+String(s2); @@ -62,4 +61,3 @@ if (Number(dynaString("-1234.", "5678E-90")) !== -Number("1234.5678E-90")) { if (Number(dynaString("-Infi", "nity")) !== Number.NEGATIVE_INFINITY) { $ERROR('#3: Number("-Infi"+"nity") === Number.NEGATIVE_INFINITY'); } - diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A6_T1.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A6_T1.js index 6aeeef242..7d026112b 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A6_T1.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A6_T1.js @@ -1,13 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The MV of StrUnsignedDecimalLiteral::: Infinity is 10<sup><small>10000</small></sup> - * (a value so large that it will round to <b><tt>+∞</tt></b>) - * - * @path ch09/9.3/9.3.1/S9.3.1_A6_T1.js - * @description Compare Number('Infinity') with Number.POSITIVE_INFINITY, 10e10000, 10E10000 and Number("10e10000") - */ +/*--- +info: > + The MV of StrUnsignedDecimalLiteral::: Infinity is 10<sup><small>10000</small></sup> + (a value so large that it will round to <b><tt>+∞</tt></b>) +description: > + Compare Number('Infinity') with Number.POSITIVE_INFINITY, + 10e10000, 10E10000 and Number("10e10000") +---*/ // CHECK#1 if (Number("Infinity") !== Number.POSITIVE_INFINITY) { @@ -28,4 +29,3 @@ if (Number("Infinity") !== 10E10000) { if (Number("Infinity") !== Number("10e10000")) { $ERROR('#4: Number("Infinity") === Number("10e10000")'); } - diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A6_T2.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A6_T2.js index 9e4659873..ee6507333 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A6_T2.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A6_T2.js @@ -1,13 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The MV of StrUnsignedDecimalLiteral::: Infinity is 10<sup><small>10000</small></sup> - * (a value so large that it will round to <b><tt>+∞</tt></b>) - * - * @path ch09/9.3/9.3.1/S9.3.1_A6_T2.js - * @description Compare Number('Infi'+'nity') with Number.POSITIVE_INFINITY, 10e10000, 10E10000 and Number("10e10000") - */ +/*--- +info: > + The MV of StrUnsignedDecimalLiteral::: Infinity is 10<sup><small>10000</small></sup> + (a value so large that it will round to <b><tt>+∞</tt></b>) +description: > + Compare Number('Infi'+'nity') with Number.POSITIVE_INFINITY, + 10e10000, 10E10000 and Number("10e10000") +---*/ function dynaString(s1, s2){ return String(s1)+String(s2); @@ -33,4 +34,3 @@ if (Number(dynaString("Infi", "nity")) !== 10E10000) { if (Number(dynaString("Infi", "nity")) !== Number("10e10000")) { $ERROR('#4: Number("Infi"+"nity") === Number("10e10000")'); } - diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A7.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A7.js index 50a7f357f..a47bc90df 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A7.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A7.js @@ -1,17 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The MV of StrUnsignedDecimalLiteral::: DecimalDigits. DecimalDigits - * is the MV of the first DecimalDigits plus the MV of the second DecimalDigits times - * 10<sup><small>-n</small></sup>, where n is the number of characters in the second DecimalDigits - * - * @path ch09/9.3/9.3.1/S9.3.1_A7.js - * @description Compare Number('1234.5678') with Number('1234')+(+('5678')*1e-4) - */ +/*--- +info: > + The MV of StrUnsignedDecimalLiteral::: DecimalDigits. DecimalDigits + is the MV of the first DecimalDigits plus the MV of the second DecimalDigits times + 10<sup><small>-n</small></sup>, where n is the number of characters in the second DecimalDigits +description: Compare Number('1234.5678') with Number('1234')+(+('5678')*1e-4) +---*/ // CHECK#1 if (Number("1234.5678") !== Number("1234")+(+("5678")*1e-4)) { $ERROR('#1: Number("1234.5678") === Number("1234")+(+("5678")*1e-4)'); } - diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A8.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A8.js index 6b7a5d4a3..da4ac86a1 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A8.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A8.js @@ -1,13 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The MV of StrUnsignedDecimalLiteral::: DecimalDigits. ExponentPart - * is the MV of DecimalDigits times 10<sup><small>e</small></sup> , where e is the MV of ExponentPart - * - * @path ch09/9.3/9.3.1/S9.3.1_A8.js - * @description Compare Number('1234e5') and Number('1234.e5') with Number('1234')*1e5 - */ +/*--- +info: > + The MV of StrUnsignedDecimalLiteral::: DecimalDigits. ExponentPart + is the MV of DecimalDigits times 10<sup><small>e</small></sup> , where e is the MV of ExponentPart +description: > + Compare Number('1234e5') and Number('1234.e5') with + Number('1234')*1e5 +---*/ // CHECK#1 if (Number("1234e5") !== Number("1234")*1e5) { @@ -18,4 +19,3 @@ if (Number("1234e5") !== Number("1234")*1e5) { if (Number("1234.e5") !== +("1234")*1e5) { $ERROR('#2: Number("1234.e5") === +("1234")*1e5'); } - diff --git a/test/suite/ch09/9.3/9.3.1/S9.3.1_A9.js b/test/suite/ch09/9.3/9.3.1/S9.3.1_A9.js index 1c88a5322..3961abe13 100644 --- a/test/suite/ch09/9.3/9.3.1/S9.3.1_A9.js +++ b/test/suite/ch09/9.3/9.3.1/S9.3.1_A9.js @@ -1,16 +1,17 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * The MV of StrUnsignedDecimalLiteral::: DecimalDigits. DecimalDigits ExponentPart - * is (the MV of the first DecimalDigits plus (the MV of the second DecimalDigits times - * 10<sup><small>-n</small></sup>)) times 10<sup><small>e</small></sup>, where n is the number - * of characters in the second DecimalDigits and e is the MV of ExponentPart - * - * @path ch09/9.3/9.3.1/S9.3.1_A9.js - * @description Compare Number('1234.5678e9') with (Number('1234')+(Number('5678')*1e-4))*1e9, - * and +('1234.5678e-9') with (Number('1234')+(Number('5678')*1e-4))*1e-9 - */ +/*--- +info: > + The MV of StrUnsignedDecimalLiteral::: DecimalDigits. DecimalDigits ExponentPart + is (the MV of the first DecimalDigits plus (the MV of the second DecimalDigits times + 10<sup><small>-n</small></sup>)) times 10<sup><small>e</small></sup>, where n is the number + of characters in the second DecimalDigits and e is the MV of ExponentPart +description: > + Compare Number('1234.5678e9') with + (Number('1234')+(Number('5678')*1e-4))*1e9, and +('1234.5678e-9') + with (Number('1234')+(Number('5678')*1e-4))*1e-9 +---*/ // CHECK#1 if (Number("1234.5678e9") !== (Number("1234")+(Number("5678")*1e-4))*1e9) { @@ -21,4 +22,3 @@ if (Number("1234.5678e9") !== (Number("1234")+(Number("5678")*1e-4))*1e9) { if (+("1234.5678e-9") !== (Number("1234")+(Number("5678")*1e-4))*1e-9) { $ERROR('#2: +("1234.5678e-9") === (Number("1234")+(Number("5678")*1e-4))*1e-9'); } - diff --git a/test/suite/ch09/9.3/S9.3_A1_T1.js b/test/suite/ch09/9.3/S9.3_A1_T1.js index bd7869f1e..e8bf07f9d 100644 --- a/test/suite/ch09/9.3/S9.3_A1_T1.js +++ b/test/suite/ch09/9.3/S9.3_A1_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Result of number conversion from undefined value is NaN - * - * @path ch09/9.3/S9.3_A1_T1.js - * @description Undefined convert to Number by explicit transformation - */ +/*--- +info: Result of number conversion from undefined value is NaN +description: Undefined convert to Number by explicit transformation +---*/ // CHECK#1 if (isNaN(Number(undefined)) !== true) { @@ -22,4 +20,3 @@ if (isNaN(Number(void 0)) !== true) { if (isNaN(Number(eval("var x"))) !== true) { $ERROR('#3: Number(eval("var x")) === Not-a-Number. Actual: ' + (Number(eval("var x")))); } - diff --git a/test/suite/ch09/9.3/S9.3_A1_T2.js b/test/suite/ch09/9.3/S9.3_A1_T2.js index 930e96919..2ac4d44e5 100644 --- a/test/suite/ch09/9.3/S9.3_A1_T2.js +++ b/test/suite/ch09/9.3/S9.3_A1_T2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Result of number conversion from undefined value is NaN - * - * @path ch09/9.3/S9.3_A1_T2.js - * @description Undefined convert to Number by implicit transformation - */ +/*--- +info: Result of number conversion from undefined value is NaN +description: Undefined convert to Number by implicit transformation +---*/ // CHECK#1 if (isNaN(+(undefined)) !== true) { @@ -22,4 +20,3 @@ if (isNaN(+(void 0)) !== true) { if (isNaN(+(eval("var x"))) !== true) { $ERROR('#3: +(eval("var x")) === Not-a-Number. Actual: ' + (+(eval("var x")))); } - diff --git a/test/suite/ch09/9.3/S9.3_A2_T1.js b/test/suite/ch09/9.3/S9.3_A2_T1.js index 2be743bc7..c95cc439e 100644 --- a/test/suite/ch09/9.3/S9.3_A2_T1.js +++ b/test/suite/ch09/9.3/S9.3_A2_T1.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Result of number conversion from null value is +0 - * - * @path ch09/9.3/S9.3_A2_T1.js - * @description null convert to Number by explicit transformation - */ +/*--- +info: Result of number conversion from null value is +0 +description: null convert to Number by explicit transformation +---*/ // CHECK #1 if (Number(null) !== 0) { @@ -16,4 +14,3 @@ if (Number(null) !== 0) { $ERROR('#1.2: Number(null) === +0. Actual: -0'); } } - diff --git a/test/suite/ch09/9.3/S9.3_A2_T2.js b/test/suite/ch09/9.3/S9.3_A2_T2.js index ce035b90a..4f9593935 100644 --- a/test/suite/ch09/9.3/S9.3_A2_T2.js +++ b/test/suite/ch09/9.3/S9.3_A2_T2.js @@ -1,12 +1,10 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Result of number conversion from null value is +0 - * - * @path ch09/9.3/S9.3_A2_T2.js - * @description null convert to Number by implicit transformation - */ +/*--- +info: Result of number conversion from null value is +0 +description: null convert to Number by implicit transformation +---*/ // CHECK #1 if (+(null) !== 0) { @@ -16,4 +14,3 @@ if (+(null) !== 0) { $ERROR('#1.2: +(null) === +0. Actual: -0'); } } - diff --git a/test/suite/ch09/9.3/S9.3_A3_T1.js b/test/suite/ch09/9.3/S9.3_A3_T1.js index 1feee2b6b..5ee2e84b2 100644 --- a/test/suite/ch09/9.3/S9.3_A3_T1.js +++ b/test/suite/ch09/9.3/S9.3_A3_T1.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Result of number conversion from boolean value is 1 if the argument is true, else is +0 - * - * @path ch09/9.3/S9.3_A3_T1.js - * @description False and true convert to Number by explicit transformation - */ +/*--- +info: > + Result of number conversion from boolean value is 1 if the argument is + true, else is +0 +description: False and true convert to Number by explicit transformation +---*/ // CHECK#1 if (Number(false) !== +0) { @@ -21,4 +21,3 @@ if (Number(false) !== +0) { if (Number(true) !== 1) { $ERROR('#2: Number(true) === 1. Actual: ' + (Number(true))); } - diff --git a/test/suite/ch09/9.3/S9.3_A3_T2.js b/test/suite/ch09/9.3/S9.3_A3_T2.js index 4b7f30539..bd85cf7b4 100644 --- a/test/suite/ch09/9.3/S9.3_A3_T2.js +++ b/test/suite/ch09/9.3/S9.3_A3_T2.js @@ -1,12 +1,12 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Result of number conversion from boolean value is 1 if the argument is true, else is +0 - * - * @path ch09/9.3/S9.3_A3_T2.js - * @description False and true convert to Number by implicit transformation - */ +/*--- +info: > + Result of number conversion from boolean value is 1 if the argument is + true, else is +0 +description: False and true convert to Number by implicit transformation +---*/ // CHECK#1 if (+(false) !== +0) { @@ -21,4 +21,3 @@ if (+(false) !== +0) { if (+(true) !== 1) { $ERROR('#2: +(true) === 1. Actual: ' + (+(true))); } - diff --git a/test/suite/ch09/9.3/S9.3_A4.1_T1.js b/test/suite/ch09/9.3/S9.3_A4.1_T1.js index 96d24be9f..a1dfd39c2 100644 --- a/test/suite/ch09/9.3/S9.3_A4.1_T1.js +++ b/test/suite/ch09/9.3/S9.3_A4.1_T1.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Result of number conversion from number value equals to the input argument (no conversion) - * - * @path ch09/9.3/S9.3_A4.1_T1.js - * @description Some numbers including Number.MAX_VALUE and Number.MIN_VALUE are converted to Number with explicit transformation - */ +/*--- +info: > + Result of number conversion from number value equals to the input + argument (no conversion) +description: > + Some numbers including Number.MAX_VALUE and Number.MIN_VALUE are + converted to Number with explicit transformation +---*/ // CHECK#1 if (Number(13) !== 13) { @@ -36,5 +38,4 @@ if (Number(Number.MAX_VALUE) !== 1.7976931348623157e308) { // CHECK#6 if (Number(Number.MIN_VALUE) !== 5e-324) { $ERROR('#6: Number(Number.MIN_VALUE) === 5e-324. Actual: ' + (Number(Number.MIN_VALUE))); -} - +} diff --git a/test/suite/ch09/9.3/S9.3_A4.1_T2.js b/test/suite/ch09/9.3/S9.3_A4.1_T2.js index 6c1c28b3d..5682851c7 100644 --- a/test/suite/ch09/9.3/S9.3_A4.1_T2.js +++ b/test/suite/ch09/9.3/S9.3_A4.1_T2.js @@ -1,12 +1,14 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Result of number conversion from number value equals to the input argument (no conversion) - * - * @path ch09/9.3/S9.3_A4.1_T2.js - * @description Some numbers including Number.MAX_VALUE and Number.MIN_VALUE are converted to Number with implicit transformation - */ +/*--- +info: > + Result of number conversion from number value equals to the input + argument (no conversion) +description: > + Some numbers including Number.MAX_VALUE and Number.MIN_VALUE are + converted to Number with implicit transformation +---*/ // CHECK#1 if (+(13) !== 13) { @@ -36,5 +38,4 @@ if (+(Number.MAX_VALUE) !== 1.7976931348623157e308) { // CHECK#6 if (+(Number.MIN_VALUE) !== 5e-324) { $ERROR('#6: +(Number.MIN_VALUE) === 5e-324. Actual: ' + (+(Number.MIN_VALUE))); -} - +} diff --git a/test/suite/ch09/9.3/S9.3_A4.2_T1.js b/test/suite/ch09/9.3/S9.3_A4.2_T1.js index 788f20cb9..d4beae180 100644 --- a/test/suite/ch09/9.3/S9.3_A4.2_T1.js +++ b/test/suite/ch09/9.3/S9.3_A4.2_T1.js @@ -1,13 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Result of number conversion from number value equals to the input argument (no conversion) - * - * @path ch09/9.3/S9.3_A4.2_T1.js - * @description Number.NaN, +0, -0, Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY, - * Number.MAX_VALUE and Number.MIN_VALUE convert to Number by explicit transformation - */ +/*--- +info: > + Result of number conversion from number value equals to the input + argument (no conversion) +description: > + Number.NaN, +0, -0, Number.POSITIVE_INFINITY, + Number.NEGATIVE_INFINITY, Number.MAX_VALUE and Number.MIN_VALUE + convert to Number by explicit transformation +---*/ // CHECK#1 if (isNaN(Number(Number.NaN)) !== true) { @@ -51,4 +53,3 @@ if (Number(Number.MAX_VALUE) !== Number.MAX_VALUE) { if (Number(Number.MIN_VALUE) !== Number.MIN_VALUE) { $ERROR('#7: Number(Number.MIN_VALUE) === Number.MIN_VALUE. Actual: ' + (Number(Number.MIN_VALUE))); } - diff --git a/test/suite/ch09/9.3/S9.3_A4.2_T2.js b/test/suite/ch09/9.3/S9.3_A4.2_T2.js index 3e4d8ad4a..886274c58 100644 --- a/test/suite/ch09/9.3/S9.3_A4.2_T2.js +++ b/test/suite/ch09/9.3/S9.3_A4.2_T2.js @@ -1,13 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Result of number conversion from number value equals to the input argument (no conversion) - * - * @path ch09/9.3/S9.3_A4.2_T2.js - * @description Number.NaN, +0, -0, Number.POSITIVE_INFINITY, Number.NEGATIVE_INFINITY, - * Number.MAX_VALUE and Number.MIN_VALUE convert to Number by implicit transformation - */ +/*--- +info: > + Result of number conversion from number value equals to the input + argument (no conversion) +description: > + Number.NaN, +0, -0, Number.POSITIVE_INFINITY, + Number.NEGATIVE_INFINITY, Number.MAX_VALUE and Number.MIN_VALUE + convert to Number by implicit transformation +---*/ // CHECK#1 if (isNaN(+(Number.NaN)) !== true) { @@ -51,4 +53,3 @@ if (+(Number.MAX_VALUE) !== Number.MAX_VALUE) { if (+(Number.MIN_VALUE) !== Number.MIN_VALUE) { $ERROR('#7: +(Number.MIN_VALUE) === Number.MIN_VALUE. Actual: ' + (+(Number.MIN_VALUE))); } - diff --git a/test/suite/ch09/9.3/S9.3_A5_T1.js b/test/suite/ch09/9.3/S9.3_A5_T1.js index a76f65b1d..4cf6479c1 100644 --- a/test/suite/ch09/9.3/S9.3_A5_T1.js +++ b/test/suite/ch09/9.3/S9.3_A5_T1.js @@ -1,14 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Result of number conversion from object value is the result - * of conversion from primitive value - * - * @path ch09/9.3/S9.3_A5_T1.js - * @description new Number(), new Number(0), new Number(Number.NaN), new Number(null), - * new Number(void 0) and others convert to Number by explicit transformation - */ +/*--- +info: > + Result of number conversion from object value is the result + of conversion from primitive value +description: > + new Number(), new Number(0), new Number(Number.NaN), new + Number(null), new Number(void 0) and others convert to Number by + explicit transformation +---*/ // CHECK#1 if (Number(new Number()) !== 0) { @@ -123,4 +124,3 @@ var myobj5 = { if (isNaN(Number(myobj5)) !== true){ $ERROR("#15: Number(myobj5) calls ToPrimitive with hint Number. Exptected: Not-a-Number. Actual: " + (Number(myobj5))); } - diff --git a/test/suite/ch09/9.3/S9.3_A5_T2.js b/test/suite/ch09/9.3/S9.3_A5_T2.js index b4ebb5422..252c96b39 100644 --- a/test/suite/ch09/9.3/S9.3_A5_T2.js +++ b/test/suite/ch09/9.3/S9.3_A5_T2.js @@ -1,14 +1,15 @@ // Copyright 2009 the Sputnik authors. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. -/** - * Result of number conversion from object value is the result - * of conversion from primitive value - * - * @path ch09/9.3/S9.3_A5_T2.js - * @description new Number(), new Number(0), new Number(Number.NaN), new Number(null), - * new Number(void 0) and others convert to Number by implicit transformation - */ +/*--- +info: > + Result of number conversion from object value is the result + of conversion from primitive value +description: > + new Number(), new Number(0), new Number(Number.NaN), new + Number(null), new Number(void 0) and others convert to Number by + implicit transformation +---*/ // CHECK#1 if (+(new Number()) !== 0) { @@ -123,4 +124,3 @@ var myobj5 = { if (isNaN(+(myobj5)) !== true){ $ERROR("#15: +(myobj5) calls ToPrimitive with hint +. Exptected: 12345. Actual: " + (+(myobj5))); } - |