initial import
[vuplus_webkit] / Source / JavaScriptCore / tests / mozilla / ecma / Expressions / 11.4.6.js
1 /* The contents of this file are subject to the Netscape Public
2  * License Version 1.1 (the "License"); you may not use this file
3  * except in compliance with the License. You may obtain a copy of
4  * the License at http://www.mozilla.org/NPL/
5  *
6  * Software distributed under the License is distributed on an "AS
7  * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
8  * implied. See the License for the specific language governing
9  * rights and limitations under the License.
10  *
11  * The Original Code is Mozilla Communicator client code, released March
12  * 31, 1998.
13  *
14  * The Initial Developer of the Original Code is Netscape Communications
15  * Corporation. Portions created by Netscape are
16  * Copyright (C) 1998 Netscape Communications Corporation. All
17  * Rights Reserved.
18  *
19  * Contributor(s): 
20  * 
21  */
22 /**
23     File Name:          11.4.6.js
24     ECMA Section:       11.4.6 Unary + Operator
25     Description:        convert operand to Number type
26     Author:             christine@netscape.com
27     Date:               7 july 1997
28 */
29
30     var SECTION = "11.4.6";
31     var VERSION = "ECMA_1";
32     startTest();
33     var testcases = getTestCases();
34     var BUGNUMBER="77391";
35
36     writeHeaderToLog( SECTION + " Unary + operator");
37     test();
38
39 function test() {
40     for ( tc=0; tc < testcases.length; tc++ ) {
41         testcases[tc].passed = writeTestCaseResult(
42                             testcases[tc].expect,
43                             testcases[tc].actual,
44                             testcases[tc].description +" = "+
45                             testcases[tc].actual );
46
47         testcases[tc].reason += ( testcases[tc].passed ) ? "" : "wrong value ";
48     }
49     stopTest();
50     return ( testcases );
51 }
52 function getTestCases() {
53     var array = new Array();
54     var item = 0;
55     array[item++] = new TestCase( SECTION,  "+('')",           0,      +("") );
56     array[item++] = new TestCase( SECTION,  "+(' ')",          0,      +(" ") );
57     array[item++] = new TestCase( SECTION,  "+(\\t)",          0,      +("\t") );
58     array[item++] = new TestCase( SECTION,  "+(\\n)",          0,      +("\n") );
59     array[item++] = new TestCase( SECTION,  "+(\\r)",          0,      +("\r") );
60     array[item++] = new TestCase( SECTION,  "+(\\f)",          0,      +("\f") );
61
62     array[item++] = new TestCase( SECTION,  "+(String.fromCharCode(0x0009)",   0,  +(String.fromCharCode(0x0009)) );
63     array[item++] = new TestCase( SECTION,  "+(String.fromCharCode(0x0020)",   0,  +(String.fromCharCode(0x0020)) );
64     array[item++] = new TestCase( SECTION,  "+(String.fromCharCode(0x000C)",   0,  +(String.fromCharCode(0x000C)) );
65     array[item++] = new TestCase( SECTION,  "+(String.fromCharCode(0x000B)",   0,  +(String.fromCharCode(0x000B)) );
66     array[item++] = new TestCase( SECTION,  "+(String.fromCharCode(0x000D)",   0,  +(String.fromCharCode(0x000D)) );
67     array[item++] = new TestCase( SECTION,  "+(String.fromCharCode(0x000A)",   0,  +(String.fromCharCode(0x000A)) );
68
69     //  a StringNumericLiteral may be preceeded or followed by whitespace and/or
70     //  line terminators
71
72     array[item++] = new TestCase( SECTION,  "+( '   ' +  999 )",        999,    +( '   '+999) );
73     array[item++] = new TestCase( SECTION,  "+( '\\n'  + 999 )",       999,    +( '\n' +999) );
74     array[item++] = new TestCase( SECTION,  "+( '\\r'  + 999 )",       999,    +( '\r' +999) );
75     array[item++] = new TestCase( SECTION,  "+( '\\t'  + 999 )",       999,    +( '\t' +999) );
76     array[item++] = new TestCase( SECTION,  "+( '\\f'  + 999 )",       999,    +( '\f' +999) );
77
78     array[item++] = new TestCase( SECTION,  "+( 999 + '   ' )",        999,    +( 999+'   ') );
79     array[item++] = new TestCase( SECTION,  "+( 999 + '\\n' )",        999,    +( 999+'\n' ) );
80     array[item++] = new TestCase( SECTION,  "+( 999 + '\\r' )",        999,    +( 999+'\r' ) );
81     array[item++] = new TestCase( SECTION,  "+( 999 + '\\t' )",        999,    +( 999+'\t' ) );
82     array[item++] = new TestCase( SECTION,  "+( 999 + '\\f' )",        999,    +( 999+'\f' ) );
83
84     array[item++] = new TestCase( SECTION,  "+( '\\n'  + 999 + '\\n' )",         999,    +( '\n' +999+'\n' ) );
85     array[item++] = new TestCase( SECTION,  "+( '\\r'  + 999 + '\\r' )",         999,    +( '\r' +999+'\r' ) );
86     array[item++] = new TestCase( SECTION,  "+( '\\t'  + 999 + '\\t' )",         999,    +( '\t' +999+'\t' ) );
87     array[item++] = new TestCase( SECTION,  "+( '\\f'  + 999 + '\\f' )",         999,    +( '\f' +999+'\f' ) );
88
89     array[item++] = new TestCase( SECTION,  "+( '   ' +  '999' )",     999,    +( '   '+'999') );
90     array[item++] = new TestCase( SECTION,  "+( '\\n'  + '999' )",       999,    +( '\n' +'999') );
91     array[item++] = new TestCase( SECTION,  "+( '\\r'  + '999' )",       999,    +( '\r' +'999') );
92     array[item++] = new TestCase( SECTION,  "+( '\\t'  + '999' )",       999,    +( '\t' +'999') );
93     array[item++] = new TestCase( SECTION,  "+( '\\f'  + '999' )",       999,    +( '\f' +'999') );
94
95     array[item++] = new TestCase( SECTION,  "+( '999' + '   ' )",        999,    +( '999'+'   ') );
96     array[item++] = new TestCase( SECTION,  "+( '999' + '\\n' )",        999,    +( '999'+'\n' ) );
97     array[item++] = new TestCase( SECTION,  "+( '999' + '\\r' )",        999,    +( '999'+'\r' ) );
98     array[item++] = new TestCase( SECTION,  "+( '999' + '\\t' )",        999,    +( '999'+'\t' ) );
99     array[item++] = new TestCase( SECTION,  "+( '999' + '\\f' )",        999,    +( '999'+'\f' ) );
100
101     array[item++] = new TestCase( SECTION,  "+( '\\n'  + '999' + '\\n' )",         999,    +( '\n' +'999'+'\n' ) );
102     array[item++] = new TestCase( SECTION,  "+( '\\r'  + '999' + '\\r' )",         999,    +( '\r' +'999'+'\r' ) );
103     array[item++] = new TestCase( SECTION,  "+( '\\t'  + '999' + '\\t' )",         999,    +( '\t' +'999'+'\t' ) );
104     array[item++] = new TestCase( SECTION,  "+( '\\f'  + '999' + '\\f' )",         999,    +( '\f' +'999'+'\f' ) );
105
106     array[item++] = new TestCase( SECTION,  "+( String.fromCharCode(0x0009) +  '99' )",    99,     +( String.fromCharCode(0x0009) +  '99' ) );
107     array[item++] = new TestCase( SECTION,  "+( String.fromCharCode(0x0020) +  '99' )",    99,     +( String.fromCharCode(0x0020) +  '99' ) );
108     array[item++] = new TestCase( SECTION,  "+( String.fromCharCode(0x000C) +  '99' )",    99,     +( String.fromCharCode(0x000C) +  '99' ) );
109     array[item++] = new TestCase( SECTION,  "+( String.fromCharCode(0x000B) +  '99' )",    99,     +( String.fromCharCode(0x000B) +  '99' ) );
110     array[item++] = new TestCase( SECTION,  "+( String.fromCharCode(0x000D) +  '99' )",    99,     +( String.fromCharCode(0x000D) +  '99' ) );
111     array[item++] = new TestCase( SECTION,  "+( String.fromCharCode(0x000A) +  '99' )",    99,     +( String.fromCharCode(0x000A) +  '99' ) );
112
113     array[item++] = new TestCase( SECTION,  "+( String.fromCharCode(0x0009) +  '99' + String.fromCharCode(0x0009)",    99,     +( String.fromCharCode(0x0009) +  '99' + String.fromCharCode(0x0009)) );
114     array[item++] = new TestCase( SECTION,  "+( String.fromCharCode(0x0020) +  '99' + String.fromCharCode(0x0020)",    99,     +( String.fromCharCode(0x0009) +  '99' + String.fromCharCode(0x0020)) );
115     array[item++] = new TestCase( SECTION,  "+( String.fromCharCode(0x000C) +  '99' + String.fromCharCode(0x000C)",    99,     +( String.fromCharCode(0x0009) +  '99' + String.fromCharCode(0x000C)) );
116     array[item++] = new TestCase( SECTION,  "+( String.fromCharCode(0x000D) +  '99' + String.fromCharCode(0x000D)",    99,     +( String.fromCharCode(0x0009) +  '99' + String.fromCharCode(0x000D)) );
117     array[item++] = new TestCase( SECTION,  "+( String.fromCharCode(0x000B) +  '99' + String.fromCharCode(0x000B)",    99,     +( String.fromCharCode(0x0009) +  '99' + String.fromCharCode(0x000B)) );
118     array[item++] = new TestCase( SECTION,  "+( String.fromCharCode(0x000A) +  '99' + String.fromCharCode(0x000A)",    99,     +( String.fromCharCode(0x0009) +  '99' + String.fromCharCode(0x000A)) );
119
120     array[item++] = new TestCase( SECTION,  "+( '99' + String.fromCharCode(0x0009)",    99,     +( '99' + String.fromCharCode(0x0009)) );
121     array[item++] = new TestCase( SECTION,  "+( '99' + String.fromCharCode(0x0020)",    99,     +( '99' + String.fromCharCode(0x0020)) );
122     array[item++] = new TestCase( SECTION,  "+( '99' + String.fromCharCode(0x000C)",    99,     +( '99' + String.fromCharCode(0x000C)) );
123     array[item++] = new TestCase( SECTION,  "+( '99' + String.fromCharCode(0x000D)",    99,     +( '99' + String.fromCharCode(0x000D)) );
124     array[item++] = new TestCase( SECTION,  "+( '99' + String.fromCharCode(0x000B)",    99,     +( '99' + String.fromCharCode(0x000B)) );
125     array[item++] = new TestCase( SECTION,  "+( '99' + String.fromCharCode(0x000A)",    99,     +( '99' + String.fromCharCode(0x000A)) );
126
127     array[item++] = new TestCase( SECTION,  "+( String.fromCharCode(0x0009) +  99 )",    99,     +( String.fromCharCode(0x0009) +  99 ) );
128     array[item++] = new TestCase( SECTION,  "+( String.fromCharCode(0x0020) +  99 )",    99,     +( String.fromCharCode(0x0020) +  99 ) );
129     array[item++] = new TestCase( SECTION,  "+( String.fromCharCode(0x000C) +  99 )",    99,     +( String.fromCharCode(0x000C) +  99 ) );
130     array[item++] = new TestCase( SECTION,  "+( String.fromCharCode(0x000B) +  99 )",    99,     +( String.fromCharCode(0x000B) +  99 ) );
131     array[item++] = new TestCase( SECTION,  "+( String.fromCharCode(0x000D) +  99 )",    99,     +( String.fromCharCode(0x000D) +  99 ) );
132     array[item++] = new TestCase( SECTION,  "+( String.fromCharCode(0x000A) +  99 )",    99,     +( String.fromCharCode(0x000A) +  99 ) );
133
134     array[item++] = new TestCase( SECTION,  "+( String.fromCharCode(0x0009) +  99 + String.fromCharCode(0x0009)",    99,     +( String.fromCharCode(0x0009) +  99 + String.fromCharCode(0x0009)) );
135     array[item++] = new TestCase( SECTION,  "+( String.fromCharCode(0x0020) +  99 + String.fromCharCode(0x0020)",    99,     +( String.fromCharCode(0x0009) +  99 + String.fromCharCode(0x0020)) );
136     array[item++] = new TestCase( SECTION,  "+( String.fromCharCode(0x000C) +  99 + String.fromCharCode(0x000C)",    99,     +( String.fromCharCode(0x0009) +  99 + String.fromCharCode(0x000C)) );
137     array[item++] = new TestCase( SECTION,  "+( String.fromCharCode(0x000D) +  99 + String.fromCharCode(0x000D)",    99,     +( String.fromCharCode(0x0009) +  99 + String.fromCharCode(0x000D)) );
138     array[item++] = new TestCase( SECTION,  "+( String.fromCharCode(0x000B) +  99 + String.fromCharCode(0x000B)",    99,     +( String.fromCharCode(0x0009) +  99 + String.fromCharCode(0x000B)) );
139     array[item++] = new TestCase( SECTION,  "+( String.fromCharCode(0x000A) +  99 + String.fromCharCode(0x000A)",    99,     +( String.fromCharCode(0x0009) +  99 + String.fromCharCode(0x000A)) );
140
141     array[item++] = new TestCase( SECTION,  "+( 99 + String.fromCharCode(0x0009)",    99,     +( 99 + String.fromCharCode(0x0009)) );
142     array[item++] = new TestCase( SECTION,  "+( 99 + String.fromCharCode(0x0020)",    99,     +( 99 + String.fromCharCode(0x0020)) );
143     array[item++] = new TestCase( SECTION,  "+( 99 + String.fromCharCode(0x000C)",    99,     +( 99 + String.fromCharCode(0x000C)) );
144     array[item++] = new TestCase( SECTION,  "+( 99 + String.fromCharCode(0x000D)",    99,     +( 99 + String.fromCharCode(0x000D)) );
145     array[item++] = new TestCase( SECTION,  "+( 99 + String.fromCharCode(0x000B)",    99,     +( 99 + String.fromCharCode(0x000B)) );
146     array[item++] = new TestCase( SECTION,  "+( 99 + String.fromCharCode(0x000A)",    99,     +( 99 + String.fromCharCode(0x000A)) );
147
148
149     // StrNumericLiteral:::StrDecimalLiteral:::Infinity
150
151     array[item++] = new TestCase( SECTION,  "+('Infinity')",   Math.pow(10,10000),   +("Infinity") );
152     array[item++] = new TestCase( SECTION,  "+('-Infinity')", -Math.pow(10,10000),   +("-Infinity") );
153     array[item++] = new TestCase( SECTION,  "+('+Infinity')",  Math.pow(10,10000),   +("+Infinity") );
154
155     // StrNumericLiteral:::   StrDecimalLiteral ::: DecimalDigits . DecimalDigits opt ExponentPart opt
156
157     array[item++] = new TestCase( SECTION,  "+('0')",          0,          +("0") );
158     array[item++] = new TestCase( SECTION,  "+('-0')",         -0,         +("-0") );
159     array[item++] = new TestCase( SECTION,  "+('+0')",          0,         +("+0") );
160
161     array[item++] = new TestCase( SECTION,  "+('1')",          1,          +("1") );
162     array[item++] = new TestCase( SECTION,  "+('-1')",         -1,         +("-1") );
163     array[item++] = new TestCase( SECTION,  "+('+1')",          1,         +("+1") );
164
165     array[item++] = new TestCase( SECTION,  "+('2')",          2,          +("2") );
166     array[item++] = new TestCase( SECTION,  "+('-2')",         -2,         +("-2") );
167     array[item++] = new TestCase( SECTION,  "+('+2')",          2,         +("+2") );
168
169     array[item++] = new TestCase( SECTION,  "+('3')",          3,          +("3") );
170     array[item++] = new TestCase( SECTION,  "+('-3')",         -3,         +("-3") );
171     array[item++] = new TestCase( SECTION,  "+('+3')",          3,         +("+3") );
172
173     array[item++] = new TestCase( SECTION,  "+('4')",          4,          +("4") );
174     array[item++] = new TestCase( SECTION,  "+('-4')",         -4,         +("-4") );
175     array[item++] = new TestCase( SECTION,  "+('+4')",          4,         +("+4") );
176
177     array[item++] = new TestCase( SECTION,  "+('5')",          5,          +("5") );
178     array[item++] = new TestCase( SECTION,  "+('-5')",         -5,         +("-5") );
179     array[item++] = new TestCase( SECTION,  "+('+5')",          5,         +("+5") );
180
181     array[item++] = new TestCase( SECTION,  "+('6')",          6,          +("6") );
182     array[item++] = new TestCase( SECTION,  "+('-6')",         -6,         +("-6") );
183     array[item++] = new TestCase( SECTION,  "+('+6')",          6,         +("+6") );
184
185     array[item++] = new TestCase( SECTION,  "+('7')",          7,          +("7") );
186     array[item++] = new TestCase( SECTION,  "+('-7')",         -7,         +("-7") );
187     array[item++] = new TestCase( SECTION,  "+('+7')",          7,         +("+7") );
188
189     array[item++] = new TestCase( SECTION,  "+('8')",          8,          +("8") );
190     array[item++] = new TestCase( SECTION,  "+('-8')",         -8,         +("-8") );
191     array[item++] = new TestCase( SECTION,  "+('+8')",          8,         +("+8") );
192
193     array[item++] = new TestCase( SECTION,  "+('9')",          9,          +("9") );
194     array[item++] = new TestCase( SECTION,  "+('-9')",         -9,         +("-9") );
195     array[item++] = new TestCase( SECTION,  "+('+9')",          9,         +("+9") );
196
197     array[item++] = new TestCase( SECTION,  "+('3.14159')",    3.14159,    +("3.14159") );
198     array[item++] = new TestCase( SECTION,  "+('-3.14159')",   -3.14159,   +("-3.14159") );
199     array[item++] = new TestCase( SECTION,  "+('+3.14159')",   3.14159,    +("+3.14159") );
200
201     array[item++] = new TestCase( SECTION,  "+('3.')",         3,          +("3.") );
202     array[item++] = new TestCase( SECTION,  "+('-3.')",        -3,         +("-3.") );
203     array[item++] = new TestCase( SECTION,  "+('+3.')",        3,          +("+3.") );
204
205     array[item++] = new TestCase( SECTION,  "+('3.e1')",       30,         +("3.e1") );
206     array[item++] = new TestCase( SECTION,  "+('-3.e1')",      -30,        +("-3.e1") );
207     array[item++] = new TestCase( SECTION,  "+('+3.e1')",      30,         +("+3.e1") );
208
209     array[item++] = new TestCase( SECTION,  "+('3.e+1')",       30,         +("3.e+1") );
210     array[item++] = new TestCase( SECTION,  "+('-3.e+1')",      -30,        +("-3.e+1") );
211     array[item++] = new TestCase( SECTION,  "+('+3.e+1')",      30,         +("+3.e+1") );
212
213     array[item++] = new TestCase( SECTION,  "+('3.e-1')",       .30,         +("3.e-1") );
214     array[item++] = new TestCase( SECTION,  "+('-3.e-1')",      -.30,        +("-3.e-1") );
215     array[item++] = new TestCase( SECTION,  "+('+3.e-1')",      .30,         +("+3.e-1") );
216
217     // StrDecimalLiteral:::  .DecimalDigits ExponentPart opt
218
219     array[item++] = new TestCase( SECTION,  "+('.00001')",     0.00001,    +(".00001") );
220     array[item++] = new TestCase( SECTION,  "+('+.00001')",    0.00001,    +("+.00001") );
221     array[item++] = new TestCase( SECTION,  "+('-0.0001')",    -0.00001,   +("-.00001") );
222
223     array[item++] = new TestCase( SECTION,  "+('.01e2')",      1,          +(".01e2") );
224     array[item++] = new TestCase( SECTION,  "+('+.01e2')",     1,          +("+.01e2") );
225     array[item++] = new TestCase( SECTION,  "+('-.01e2')",     -1,         +("-.01e2") );
226
227     array[item++] = new TestCase( SECTION,  "+('.01e+2')",      1,         +(".01e+2") );
228     array[item++] = new TestCase( SECTION,  "+('+.01e+2')",     1,         +("+.01e+2") );
229     array[item++] = new TestCase( SECTION,  "+('-.01e+2')",     -1,        +("-.01e+2") );
230
231     array[item++] = new TestCase( SECTION,  "+('.01e-2')",      0.0001,    +(".01e-2") );
232     array[item++] = new TestCase( SECTION,  "+('+.01e-2')",     0.0001,    +("+.01e-2") );
233     array[item++] = new TestCase( SECTION,  "+('-.01e-2')",     -0.0001,   +("-.01e-2") );
234
235     //  StrDecimalLiteral:::    DecimalDigits ExponentPart opt
236
237     array[item++] = new TestCase( SECTION,  "+('1234e5')",     123400000,  +("1234e5") );
238     array[item++] = new TestCase( SECTION,  "+('+1234e5')",    123400000,  +("+1234e5") );
239     array[item++] = new TestCase( SECTION,  "+('-1234e5')",    -123400000, +("-1234e5") );
240
241     array[item++] = new TestCase( SECTION,  "+('1234e+5')",    123400000,  +("1234e+5") );
242     array[item++] = new TestCase( SECTION,  "+('+1234e+5')",   123400000,  +("+1234e+5") );
243     array[item++] = new TestCase( SECTION,  "+('-1234e+5')",   -123400000, +("-1234e+5") );
244
245     array[item++] = new TestCase( SECTION,  "+('1234e-5')",     0.01234,  +("1234e-5") );
246     array[item++] = new TestCase( SECTION,  "+('+1234e-5')",    0.01234,  +("+1234e-5") );
247     array[item++] = new TestCase( SECTION,  "+('-1234e-5')",    -0.01234, +("-1234e-5") );
248
249     // StrNumericLiteral::: HexIntegerLiteral
250
251     array[item++] = new TestCase( SECTION,  "+('0x0')",        0,          +("0x0"));
252     array[item++] = new TestCase( SECTION,  "+('0x1')",        1,          +("0x1"));
253     array[item++] = new TestCase( SECTION,  "+('0x2')",        2,          +("0x2"));
254     array[item++] = new TestCase( SECTION,  "+('0x3')",        3,          +("0x3"));
255     array[item++] = new TestCase( SECTION,  "+('0x4')",        4,          +("0x4"));
256     array[item++] = new TestCase( SECTION,  "+('0x5')",        5,          +("0x5"));
257     array[item++] = new TestCase( SECTION,  "+('0x6')",        6,          +("0x6"));
258     array[item++] = new TestCase( SECTION,  "+('0x7')",        7,          +("0x7"));
259     array[item++] = new TestCase( SECTION,  "+('0x8')",        8,          +("0x8"));
260     array[item++] = new TestCase( SECTION,  "+('0x9')",        9,          +("0x9"));
261     array[item++] = new TestCase( SECTION,  "+('0xa')",        10,         +("0xa"));
262     array[item++] = new TestCase( SECTION,  "+('0xb')",        11,         +("0xb"));
263     array[item++] = new TestCase( SECTION,  "+('0xc')",        12,         +("0xc"));
264     array[item++] = new TestCase( SECTION,  "+('0xd')",        13,         +("0xd"));
265     array[item++] = new TestCase( SECTION,  "+('0xe')",        14,         +("0xe"));
266     array[item++] = new TestCase( SECTION,  "+('0xf')",        15,         +("0xf"));
267     array[item++] = new TestCase( SECTION,  "+('0xA')",        10,         +("0xA"));
268     array[item++] = new TestCase( SECTION,  "+('0xB')",        11,         +("0xB"));
269     array[item++] = new TestCase( SECTION,  "+('0xC')",        12,         +("0xC"));
270     array[item++] = new TestCase( SECTION,  "+('0xD')",        13,         +("0xD"));
271     array[item++] = new TestCase( SECTION,  "+('0xE')",        14,         +("0xE"));
272     array[item++] = new TestCase( SECTION,  "+('0xF')",        15,         +("0xF"));
273
274     array[item++] = new TestCase( SECTION,  "+('0X0')",        0,          +("0X0"));
275     array[item++] = new TestCase( SECTION,  "+('0X1')",        1,          +("0X1"));
276     array[item++] = new TestCase( SECTION,  "+('0X2')",        2,          +("0X2"));
277     array[item++] = new TestCase( SECTION,  "+('0X3')",        3,          +("0X3"));
278     array[item++] = new TestCase( SECTION,  "+('0X4')",        4,          +("0X4"));
279     array[item++] = new TestCase( SECTION,  "+('0X5')",        5,          +("0X5"));
280     array[item++] = new TestCase( SECTION,  "+('0X6')",        6,          +("0X6"));
281     array[item++] = new TestCase( SECTION,  "+('0X7')",        7,          +("0X7"));
282     array[item++] = new TestCase( SECTION,  "+('0X8')",        8,          +("0X8"));
283     array[item++] = new TestCase( SECTION,  "+('0X9')",        9,          +("0X9"));
284     array[item++] = new TestCase( SECTION,  "+('0Xa')",        10,         +("0Xa"));
285     array[item++] = new TestCase( SECTION,  "+('0Xb')",        11,         +("0Xb"));
286     array[item++] = new TestCase( SECTION,  "+('0Xc')",        12,         +("0Xc"));
287     array[item++] = new TestCase( SECTION,  "+('0Xd')",        13,         +("0Xd"));
288     array[item++] = new TestCase( SECTION,  "+('0Xe')",        14,         +("0Xe"));
289     array[item++] = new TestCase( SECTION,  "+('0Xf')",        15,         +("0Xf"));
290     array[item++] = new TestCase( SECTION,  "+('0XA')",        10,         +("0XA"));
291     array[item++] = new TestCase( SECTION,  "+('0XB')",        11,         +("0XB"));
292     array[item++] = new TestCase( SECTION,  "+('0XC')",        12,         +("0XC"));
293     array[item++] = new TestCase( SECTION,  "+('0XD')",        13,         +("0XD"));
294     array[item++] = new TestCase( SECTION,  "+('0XE')",        14,         +("0XE"));
295     array[item++] = new TestCase( SECTION,  "+('0XF')",        15,         +("0XF"));
296
297     return array;
298
299 }