2011-09-07 08:35:18 +02:00
|
|
|
// Copyright 2009 the Sputnik authors. All rights reserved.
|
|
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
|
2014-07-22 01:09:02 +02:00
|
|
|
/*---
|
2018-01-05 18:26:51 +01:00
|
|
|
info: |
|
2014-07-22 01:09:02 +02:00
|
|
|
The production CharacterClassEscape :: s evaluates by returning the set of characters
|
|
|
|
containing the characters that are on the right-hand side of the WhiteSpace (7.2) or LineTerminator (7.3) productions
|
2014-07-25 00:41:42 +02:00
|
|
|
es5id: 15.10.2.12_A1_T3
|
2014-07-22 01:09:02 +02:00
|
|
|
description: ENGLISH ALPHABET
|
|
|
|
---*/
|
2011-09-07 08:35:18 +02:00
|
|
|
|
|
|
|
var regexp_s = /\s/;
|
|
|
|
|
|
|
|
//CHECK#0041-005A
|
2018-02-09 18:09:47 +01:00
|
|
|
var result = true;
|
2015-04-29 17:42:48 +02:00
|
|
|
for (var alpha = 0x0041; alpha <= 0x005A; alpha++) {
|
2011-09-07 08:35:18 +02:00
|
|
|
if (regexp_s.exec(String.fromCharCode(alpha)) !== null) {
|
|
|
|
result = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (result !== true) {
|
|
|
|
$ERROR('#1: ENGLISH CAPITAL ALPHABET');
|
2018-02-09 18:09:47 +01:00
|
|
|
}
|
2011-09-07 08:35:18 +02:00
|
|
|
|
|
|
|
//CHECK#0061-007A
|
2018-02-09 18:09:47 +01:00
|
|
|
var result = true;
|
2011-09-07 08:35:18 +02:00
|
|
|
for (alpha = 0x0061; alpha <= 0x007A; alpha++) {
|
|
|
|
if (regexp_s.exec(String.fromCharCode(alpha)) !== null) {
|
|
|
|
result = false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (result !== true) {
|
|
|
|
$ERROR('#2: english small alphabet');
|
2014-07-22 01:09:02 +02:00
|
|
|
}
|