2011-09-07 08:35:18 +02:00
|
|
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
2014-07-22 01:09:02 +02:00
|
|
|
/*---
|
|
|
|
info: "DecimalLiteral :: HexIntegerLiteral"
|
2014-07-25 00:41:42 +02:00
|
|
|
es5id: 7.8.3_A5.1_T7
|
2014-07-22 01:09:02 +02:00
|
|
|
description: "HexIntegerLiteral :: 0x one of a, b, c, d, e, f"
|
|
|
|
---*/
|
2011-09-07 08:35:18 +02:00
|
|
|
|
|
|
|
//CHECK#a
|
|
|
|
if (0xa !== 10) {
|
2021-07-28 22:45:44 +02:00
|
|
|
throw new Test262Error('#a: 0xa === 10');
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//CHECK#b
|
|
|
|
if (0xb !== 11) {
|
2021-07-28 22:45:44 +02:00
|
|
|
throw new Test262Error('#b: 0xb === 11');
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//CHECK#c
|
|
|
|
if (0xc !== 12) {
|
2021-07-28 22:45:44 +02:00
|
|
|
throw new Test262Error('#c: 0xc === 12');
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//CHECK#d
|
|
|
|
if (0xd !== 13) {
|
2021-07-28 22:45:44 +02:00
|
|
|
throw new Test262Error('#d: 0xd === 13');
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//CHECK#e
|
|
|
|
if (0xe !== 14) {
|
2021-07-28 22:45:44 +02:00
|
|
|
throw new Test262Error('#e: 0xe === 14');
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
//CHECK#f
|
|
|
|
if (0xf !== 15) {
|
2021-07-28 22:45:44 +02:00
|
|
|
throw new Test262Error('#f: 0xf === 15');
|
2011-09-07 08:35:18 +02:00
|
|
|
}
|