S7.8.4_A7.1_T2.js (941B)
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: | 6 EscapeSequence :: UnicodeEscapeSequence :: u HexDigit HexDigit HexDigit 7 HexDigit 8 es5id: 7.8.4_A7.1_T2 9 description: "UnicodeEscapeSequence :: ENGLISH CAPITAL ALPHABET" 10 ---*/ 11 12 //CHECK#A-Z 13 var 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"]; 14 var 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"]; 15 for (var index = 0; index <= 25; index++) { 16 if (unicode[index] !== character[index]) { 17 throw new Test262Error('#' + character[index] + ' '); 18 } 19 } 20 21 reportCompare(0, 0);