~ubuntu-branches/ubuntu/vivid/mozjs24/vivid

« back to all changes in this revision

Viewing changes to js/src/tests/test262/ch07/7.8/7.8.4/S7.8.4_A6.3_T1.js

  • Committer: Package Import Robot
  • Author(s): Tim Lunn
  • Date: 2014-02-11 21:55:34 UTC
  • Revision ID: package-import@ubuntu.com-20140211215534-m1zyq5aj59md3y07
Tags: upstream-24.2.0
ImportĀ upstreamĀ versionĀ 24.2.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 * \x HexDigit HexDigit SingleStringCharacter
 
6
 *
 
7
 * @path ch07/7.8/7.8.4/S7.8.4_A6.3_T1.js
 
8
 * @description Check similar to ('\x01F' === String.fromCharCode('1') + 'F')
 
9
 */
 
10
 
 
11
//CHECK#1
 
12
if ('\x01F' !== String.fromCharCode('1') + 'F') {
 
13
  $ERROR("#1: '\x01F' === String.fromCharCode('1') + 'F'");
 
14
}
 
15
 
 
16
//CHECK#2
 
17
if ('\x02E' !== String.fromCharCode('2') + 'E') {
 
18
  $ERROR("#2: '\x02E' === String.fromCharCode('2') + 'E'");
 
19
}
 
20
 
 
21
//CHECK#3
 
22
if ('\x03D' !== String.fromCharCode('3') + 'D') {
 
23
  $ERROR("#3: '\x03D' === String.fromCharCode('3') + 'D'");
 
24
}
 
25
 
 
26
//CHECK#4
 
27
if ('\x04C' !== String.fromCharCode('4') + 'C') {
 
28
  $ERROR("#4: '\x04C' === String.fromCharCode('4') + 'C'");
 
29
}
 
30
 
 
31
//CHECK#5
 
32
if ('\x05B' !== String.fromCharCode('5') + 'B') {
 
33
  $ERROR("#5: '\x05B' === String.fromCharCode('5') + 'B'");
 
34
}
 
35
 
 
36
//CHECK#6
 
37
if ('\x06A' !== String.fromCharCode('6') + 'A') {
 
38
  $ERROR("#6: '\x06A' === String.fromCharCode('6') + 'A'");
 
39
}
 
40
 
 
41
//CHECK#7
 
42
if ('\x079' !== String.fromCharCode('7') + '9') {
 
43
  $ERROR("#7: '\x079' === String.fromCharCode('7') + '9'");
 
44
}
 
45
 
 
46
//CHECK#8
 
47
if ('\x088' !== String.fromCharCode('8') + '8') {
 
48
  $ERROR("#8: '\x088' === String.fromCharCode('8') + '8'");
 
49
}
 
50
 
 
51
//CHECK#9
 
52
if ('\x097' !== String.fromCharCode('9') + '7') {
 
53
  $ERROR("#9: '\x097' === String.fromCharCode('9') + '7'");
 
54
}
 
55
 
 
56
//CHECK#A
 
57
if ('\x0A6' !== String.fromCharCode('10') + '6') {
 
58
  $ERROR("#A: '\x0A6' === String.fromCharCode('10') + '6'");
 
59
}
 
60
 
 
61
//CHECK#B
 
62
if ('\x0B5' !== String.fromCharCode('11') + '5') {
 
63
  $ERROR("#B: '\x0B5' === String.fromCharCode('11') + '5'");
 
64
}
 
65
 
 
66
//CHECK#C
 
67
if ('\x0C4' !== String.fromCharCode('12') + '4') {
 
68
  $ERROR("#C: '\x0C4' === String.fromCharCode('12') + '4'");
 
69
}
 
70
 
 
71
//CHECK#D
 
72
if ('\x0D3' !== String.fromCharCode('13') + '3') {
 
73
  $ERROR("#D: '\x0D3' === String.fromCharCode('13') + '3'");
 
74
}
 
75
 
 
76
//CHECK#E
 
77
if ('\x0E2' !== String.fromCharCode('14') + '2') {
 
78
  $ERROR("#E: '\x0E2' === String.fromCharCode('14') + '2'");
 
79
}
 
80
 
 
81
//CHECK#F
 
82
if ('\x0F1' !== String.fromCharCode('15') + '1') {
 
83
  $ERROR("#F: '\x0F1' === String.fromCharCode('15') + '1'");
 
84
}
 
85