Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Pattern_White_Space.js

raw
1 // Copyright 2024 Mathias Bynens. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3
4 /*---
5 author: Mathias Bynens
6 description: >
7 Unicode property escapes for `Pattern_White_Space`
8 info: |
9 Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
10 Unicode v16.0.0
11 esid: sec-static-semantics-unicodematchproperty-p
12 features: [regexp-unicode-property-escapes]
13 includes: [regExpUtils.js]
14 ---*/
15
16 const matchSymbols = buildString({
17 loneCodePoints: [
18 0x000020,
19 0x000085
20 ],
21 ranges: [
22 [0x000009, 0x00000D],
23 [0x00200E, 0x00200F],
24 [0x002028, 0x002029]
25 ]
26 });
27 testPropertyEscapes(
28 /^\p{Pattern_White_Space}+$/u,
29 matchSymbols,
30 "\\p{Pattern_White_Space}"
31 );
32 testPropertyEscapes(
33 /^\p{Pat_WS}+$/u,
34 matchSymbols,
35 "\\p{Pat_WS}"
36 );
37
38 const nonMatchSymbols = buildString({
39 loneCodePoints: [],
40 ranges: [
41 [0x00DC00, 0x00DFFF],
42 [0x000000, 0x000008],
43 [0x00000E, 0x00001F],
44 [0x000021, 0x000084],
45 [0x000086, 0x00200D],
46 [0x002010, 0x002027],
47 [0x00202A, 0x00DBFF],
48 [0x00E000, 0x10FFFF]
49 ]
50 });
51 testPropertyEscapes(
52 /^\P{Pattern_White_Space}+$/u,
53 nonMatchSymbols,
54 "\\P{Pattern_White_Space}"
55 );
56 testPropertyEscapes(
57 /^\P{Pat_WS}+$/u,
58 nonMatchSymbols,
59 "\\P{Pat_WS}"
60 );
61
62 reportCompare(0, 0);