js/src/tests/test262/ch07/7.6/S7.6_A4.3_T1.js

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     1 // Copyright 2009 the Sputnik authors.  All rights reserved.
     2 // This code is governed by the BSD license found in the LICENSE file.
     4 /**
     5  * Correct interpretation of DIGITS
     6  *
     7  * @path ch07/7.6/S7.6_A4.3_T1.js
     8  * @description Identifier is $+ANY_DIGIT
     9  */
    11 //CHECK#0-9
    12 var $\u0030 = 0;
    13 if ($0 !== 0) {
    14   $ERROR('#0: $\\u0030 = 0; $0 === 0');
    15 }
    16 var $\u0031 = 1;
    17 if ($1 !== 1) {
    18   $ERROR('#1: $\\u0031 = 1; $1 === 1');
    19 }
    20 var $\u0032 = 2;
    21 if ($2 !== 2) {
    22   $ERROR('#2: $\\u0032 = 2; $2 === 2');
    23 }
    24 var $\u0033 = 3;
    25 if ($3 !== 3) {
    26   $ERROR('#3: $\\u0033 = 3; $3 === 3');
    27 }
    28 var $\u0034 = 4;
    29 if ($4 !== 4) {
    30   $ERROR('#4: $\\u0034 = 4; $4 === 4');
    31 }
    32 var $\u0035 = 5;
    33 if ($5 !== 5) {
    34   $ERROR('#5: $\\u0035 = 5; $5 === 5');
    35 }
    36 var $\u0036 = 6;
    37 if ($6 !== 6) {
    38   $ERROR('#6: $\\u0036 = 6; $6 === 6');
    39 }
    40 var $\u0037 = 7;
    41 if ($7 !== 7) {
    42   $ERROR('#7: $\\u0037 = 7; $7 === 7');
    43 }
    44 var $\u0038 = 8;
    45 if ($8 !== 8) {
    46   $ERROR('#8: $\\u0038 = 8; $8 === 8');
    47 }
    48 var $\u0039 = 9;
    49 if ($9 !== 9) {
    50   $ERROR('#9: $\\u0039 = 9; $9 === 9');
    51 }

mercurial