mirror of https://github.com/tc39/test262.git
18 lines
989 B
JavaScript
18 lines
989 B
JavaScript
// Copyright 2009 the Sputnik authors. All rights reserved.
|
||
// This code is governed by the BSD license found in the LICENSE file.
|
||
|
||
/*---
|
||
info: Correct interpretation of RUSSIAN ALPHABET
|
||
es5id: 7.8.4_A2.2_T1
|
||
description: Check RUSSIAN CAPITAL ALPHABET
|
||
---*/
|
||
|
||
//CHECK#А-Я
|
||
var unicode = ["\u0410", "\u0411", "\u0412", "\u0413", "\u0414", "\u0415", "\u0416", "\u0417", "\u0418", "\u0419", "\u041A", "\u041B", "\u041C", "\u041D", "\u041E", "\u041F", "\u0420", "\u0421", "\u0422", "\u0423", "\u0424", "\u0425", "\u0426", "\u0427", "\u0428", "\u0429", "\u042A", "\u042B", "\u042C", "\u042D", "\u042E", "\u042F", "\u0401"];
|
||
var character = ["А", "Б", "В", "Г", "Д", "Е", "Ж", "З", "И", "Й", "К", "Л", "М", "Н", "О", "П", "Р", "С", "Т", "У", "Ф", "Х", "Ц", "Ч", "Ш", "Щ", "Ъ", "Ы", "Ь", "Э", "Ю", "Я", "Ё"];
|
||
for (var index = 0; index <= 32; index++) {
|
||
if (unicode[index] !== character[index]) {
|
||
throw new Test262Error('#' + character[index] + ' ');
|
||
}
|
||
}
|