| 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 |
$ERROR('#a: 0xa === 10'); |
| 13 |
} |
| 14 |
|
| 15 |
//CHECK#b |
| 16 |
if (0xb !== 11) { |
| 17 |
$ERROR('#b: 0xb === 11'); |
| 18 |
} |
| 19 |
|
| 20 |
//CHECK#c |
| 21 |
if (0xc !== 12) { |
| 22 |
$ERROR('#c: 0xc === 12'); |
| 23 |
} |
| 24 |
|
| 25 |
//CHECK#d |
| 26 |
if (0xd !== 13) { |
| 27 |
$ERROR('#d: 0xd === 13'); |
| 28 |
} |
| 29 |
|
| 30 |
//CHECK#e |
| 31 |
if (0xe !== 14) { |
| 32 |
$ERROR('#e: 0xe === 14'); |
| 33 |
} |
| 34 |
|
| 35 |
//CHECK#f |
| 36 |
if (0xf !== 15) { |
| 37 |
$ERROR('#f: 0xf === 15'); |
| 38 |
} |