tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

S7.8.3_A5.1_T7.js (745B)


      1 // Copyright 2009 the Sputnik authors.  All rights reserved.
      2 // This code is governed by the BSD license found in the LICENSE file.
      3 
      4 /*---
      5 info: "DecimalLiteral :: HexIntegerLiteral"
      6 es5id: 7.8.3_A5.1_T7
      7 description: "HexIntegerLiteral :: 0x one of a, b, c, d, e, f"
      8 ---*/
      9 
     10 //CHECK#a
     11 if (0xa !== 10) {
     12  throw new Test262Error('#a: 0xa === 10');
     13 }
     14 
     15 //CHECK#b
     16 if (0xb !== 11) {
     17  throw new Test262Error('#b: 0xb === 11');
     18 }
     19 
     20 //CHECK#c
     21 if (0xc !== 12) {
     22  throw new Test262Error('#c: 0xc === 12');
     23 }
     24 
     25 //CHECK#d
     26 if (0xd !== 13) {
     27  throw new Test262Error('#d: 0xd === 13');
     28 }
     29 
     30 //CHECK#e
     31 if (0xe !== 14) {
     32  throw new Test262Error('#e: 0xe === 14');
     33 }
     34 
     35 //CHECK#f
     36 if (0xf !== 15) {
     37  throw new Test262Error('#f: 0xf === 15');
     38 }
     39 
     40 reportCompare(0, 0);