1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// Copyright 2009 the Sputnik authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/**
* @name: S7.8.4_A2.1_T1;
* @section: 7.8.4;
* @assertion: Correct interpretation of ENGLISH ALPHABET;
* @description: Check ENGLISH CAPITAL ALPHABET;
*/
// Converted for Test262 from original Sputnik source
ES5Harness.registerTest( {
id: "S7.8.4_A2.1_T1",
path: "TestCases/07_Lexical_Conventions/7.8_Literals/7.8.4_String_Literals/S7.8.4_A2.1_T1.js",
assertion: "Correct interpretation of ENGLISH ALPHABET",
description: "Check ENGLISH CAPITAL ALPHABET",
test: function testcase() {
//CHECK#A-Z
unicode = ["\u0041", "\u0042", "\u0043", "\u0044", "\u0045", "\u0046", "\u0047", "\u0048", "\u0049", "\u004A", "\u004B", "\u004C", "\u004D", "\u004E", "\u004F", "\u0050", "\u0051", "\u0052", "\u0053", "\u0054", "\u0055", "\u0056", "\u0057", "\u0058", "\u0059", "\u005A"];
character = ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"];
for (index = 0; index <= 25; index++) {
if (unicode[index] !== character[index]) {
$ERROR('#' + character[index] + ' ');
}
}
}
});
|