Debian Codegraph @

tests/auto/qml/ecmascripttests/test262/test/built-ins/RegExp/S15.10.2.12_A6_T4.js

raw
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 The production CharacterClassEscape :: D evaluates by returning the set of all characters not
7 included in the set returned by CharacterClassEscape :: d
8 es5id: 15.10.2.12_A6_T4
9 description: RUSSIAN ALPHABET
10 ---*/
11
12 //CHECK#1
13 var non_d = "_abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ\f\n\r\t\v~`!@#$%^&*()-+={[}]|\\:;'<,>./? " + '"';
14 var regexp_D = /\D/g;
15 var k = 0;
16 while (regexp_D.exec(non_d) !== null) {
17 k++;
18 }
19
20 if (non_d.length !== k) {
21 $ERROR('#1: non-d');
22 }
23
24 //CHECK#2
25 var non_d = '0123456789';
26 if (/\D/.exec(non_d) !== null) {
27 $ERROR('#2: non-d');
28 }