Debian Codegraph @

js/src/tests/test262/language/literals/numeric/S7.8.3_A5.1_T1.js

raw
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_T1
7 description: "HexIntegerLiteral :: 0x Digit"
8 ---*/
9
10 //CHECK#0
11 if (0x0 !== 0) {
12 throw new Test262Error('#0: 0x0 === 0');
13 }
14
15 //CHECK#1
16 if (0x1 !== 1) {
17 throw new Test262Error('#1: 0x1 === 1');
18 }
19
20 //CHECK#2
21 if (0x2 !== 2) {
22 throw new Test262Error('#2: 0x2 === 2');
23 }
24
25 //CHECK#3
26 if (0x3 !== 3) {
27 throw new Test262Error('#3: 0x3 === 3');
28 }
29
30 //CHECK#4
31 if (0x4 !== 4) {
32 throw new Test262Error('#4: 0x4 === 4');
33 }
34
35 //CHECK#5
36 if (0x5 !== 5) {
37 throw new Test262Error('#5: 0x5 === 5');
38 }
39
40 //CHECK#6
41 if (0x6 !== 6) {
42 throw new Test262Error('#6: 0x6 === 6');
43 }
44
45 //CHECK#7
46 if (0x7 !== 7) {
47 throw new Test262Error('#7: 0x7 === 7');
48 }
49
50 //CHECK#8
51 if (0x8 !== 8) {
52 throw new Test262Error('#8: 0x8 === 8');
53 }
54
55 //CHECK#9
56 if (0x9 !== 9) {
57 throw new Test262Error('#9: 0x9 === 9');
58 }
59
60 //CHECK#A
61 if (0xA !== 10) {
62 throw new Test262Error('#A: 0xA === 10');
63 }
64
65 //CHECK#B
66 if (0xB !== 11) {
67 throw new Test262Error('#B: 0xB === 11');
68 }
69
70 //CHECK#C
71 if (0xC !== 12) {
72 throw new Test262Error('#C: 0xC === 12');
73 }
74
75 //CHECK#D
76 if (0xD !== 13) {
77 throw new Test262Error('#D: 0xD === 13');
78 }
79
80 //CHECK#E
81 if (0xE !== 14) {
82 throw new Test262Error('#E: 0xE === 14');
83 }
84
85 //CHECK#F
86 if (0xF !== 15) {
87 throw new Test262Error('#F: 0xF === 15');
88 }
89
90 reportCompare(0, 0);