Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/language/literals/string/S7.8.4_A6.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: "EscapeSequence :: HexEscapeSequence :: x HexDigit HexDigit"
6 es5id: 7.8.4_A6.1_T1
7 description: "HexEscapeSequence :: HexDigit"
8 ---*/
9
10 //CHECK#0
11 if ("\x00" !== String.fromCharCode("0")) {
12 $ERROR('#0: "\\x00" === String.fromCharCode("0")');
13 }
14
15 //CHECK#1
16 if ("\x01" !== String.fromCharCode("1")) {
17 $ERROR('#1: "\\x01" === String.fromCharCode("1")');
18 }
19
20 //CHECK#2
21 if ("\x02" !== String.fromCharCode("2")) {
22 $ERROR('#2: "\\x02" === String.fromCharCode("2")');
23 }
24
25 //CHECK#3
26 if ("\x03" !== String.fromCharCode("3")) {
27 $ERROR('#3: "\\x03" === String.fromCharCode("3")');
28 }
29
30 //CHECK#4
31 if ("\x04" !== String.fromCharCode("4")) {
32 $ERROR('#4: "\\x04" === String.fromCharCode("4")');
33 }
34
35 //CHECK#5
36 if ("\x05" !== String.fromCharCode("5")) {
37 $ERROR('#5: "\\x05" === String.fromCharCode("5")');
38 }
39
40 //CHECK#6
41 if ("\x06" !== String.fromCharCode("6")) {
42 $ERROR('#6: "\\x06" === String.fromCharCode("6")');
43 }
44
45 //CHECK#7
46 if ("\x07" !== String.fromCharCode("7")) {
47 $ERROR('#7: "\\x07" === String.fromCharCode("7")');
48 }
49
50 //CHECK#8
51 if ("\x08" !== String.fromCharCode("8")) {
52 $ERROR('#8: "\\x08" === String.fromCharCode("8")');
53 }
54
55 //CHECK#9
56 if ("\x09" !== String.fromCharCode("9")) {
57 $ERROR('#9: "\\x09" === String.fromCharCode("9")');
58 }
59
60 //CHECK#A
61 if ("\x0A" !== String.fromCharCode("10")) {
62 $ERROR('#A: "\\x0A" === String.fromCharCode("10")');
63 }
64
65 //CHECK#B
66 if ("\x0B" !== String.fromCharCode("11")) {
67 $ERROR('#B: "\\x0B" === String.fromCharCode("11")');
68 }
69
70 //CHECK#C
71 if ("\x0C" !== String.fromCharCode("12")) {
72 $ERROR('#C: "\\x0C" === String.fromCharCode("12")');
73 }
74
75 //CHECK#D
76 if ("\x0D" !== String.fromCharCode("13")) {
77 $ERROR('#D: "\\x0D" === String.fromCharCode("13")');
78 }
79
80 //CHECK#E
81 if ("\x0E" !== String.fromCharCode("14")) {
82 $ERROR('#E: "\\x0E" === String.fromCharCode("14")');
83 }
84
85 //CHECK#F
86 if ("\x0F" !== String.fromCharCode("15")) {
87 $ERROR('#F: "\\x0F" === String.fromCharCode("15")');
88 }