Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Hangul.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 `Script_Extensions=Hangul`
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 0x003037,
19 0x0030FB
20 ],
21 ranges: [
22 [0x001100, 0x0011FF],
23 [0x003001, 0x003003],
24 [0x003008, 0x003011],
25 [0x003013, 0x00301F],
26 [0x00302E, 0x003030],
27 [0x003131, 0x00318E],
28 [0x003200, 0x00321E],
29 [0x003260, 0x00327E],
30 [0x00A960, 0x00A97C],
31 [0x00AC00, 0x00D7A3],
32 [0x00D7B0, 0x00D7C6],
33 [0x00D7CB, 0x00D7FB],
34 [0x00FE45, 0x00FE46],
35 [0x00FF61, 0x00FF65],
36 [0x00FFA0, 0x00FFBE],
37 [0x00FFC2, 0x00FFC7],
38 [0x00FFCA, 0x00FFCF],
39 [0x00FFD2, 0x00FFD7],
40 [0x00FFDA, 0x00FFDC]
41 ]
42 });
43 testPropertyEscapes(
44 /^\p{Script_Extensions=Hangul}+$/u,
45 matchSymbols,
46 "\\p{Script_Extensions=Hangul}"
47 );
48 testPropertyEscapes(
49 /^\p{Script_Extensions=Hang}+$/u,
50 matchSymbols,
51 "\\p{Script_Extensions=Hang}"
52 );
53 testPropertyEscapes(
54 /^\p{scx=Hangul}+$/u,
55 matchSymbols,
56 "\\p{scx=Hangul}"
57 );
58 testPropertyEscapes(
59 /^\p{scx=Hang}+$/u,
60 matchSymbols,
61 "\\p{scx=Hang}"
62 );
63
64 const nonMatchSymbols = buildString({
65 loneCodePoints: [
66 0x003012
67 ],
68 ranges: [
69 [0x00DC00, 0x00DFFF],
70 [0x000000, 0x0010FF],
71 [0x001200, 0x003000],
72 [0x003004, 0x003007],
73 [0x003020, 0x00302D],
74 [0x003031, 0x003036],
75 [0x003038, 0x0030FA],
76 [0x0030FC, 0x003130],
77 [0x00318F, 0x0031FF],
78 [0x00321F, 0x00325F],
79 [0x00327F, 0x00A95F],
80 [0x00A97D, 0x00ABFF],
81 [0x00D7A4, 0x00D7AF],
82 [0x00D7C7, 0x00D7CA],
83 [0x00D7FC, 0x00DBFF],
84 [0x00E000, 0x00FE44],
85 [0x00FE47, 0x00FF60],
86 [0x00FF66, 0x00FF9F],
87 [0x00FFBF, 0x00FFC1],
88 [0x00FFC8, 0x00FFC9],
89 [0x00FFD0, 0x00FFD1],
90 [0x00FFD8, 0x00FFD9],
91 [0x00FFDD, 0x10FFFF]
92 ]
93 });
94 testPropertyEscapes(
95 /^\P{Script_Extensions=Hangul}+$/u,
96 nonMatchSymbols,
97 "\\P{Script_Extensions=Hangul}"
98 );
99 testPropertyEscapes(
100 /^\P{Script_Extensions=Hang}+$/u,
101 nonMatchSymbols,
102 "\\P{Script_Extensions=Hang}"
103 );
104 testPropertyEscapes(
105 /^\P{scx=Hangul}+$/u,
106 nonMatchSymbols,
107 "\\P{scx=Hangul}"
108 );
109 testPropertyEscapes(
110 /^\P{scx=Hang}+$/u,
111 nonMatchSymbols,
112 "\\P{scx=Hang}"
113 );
114
115 reportCompare(0, 0);