S7.8.3_A5.1_T8.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_T8 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);