Debian Codegraph @

js/src/tests/test262/built-ins/RegExp/property-escapes/generated/IDS_Binary_Operator.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 `IDS_Binary_Operator`
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 0x0031EF
19 ],
20 ranges: [
21 [0x002FF0, 0x002FF1],
22 [0x002FF4, 0x002FFD]
23 ]
24 });
25 testPropertyEscapes(
26 /^\p{IDS_Binary_Operator}+$/u,
27 matchSymbols,
28 "\\p{IDS_Binary_Operator}"
29 );
30 testPropertyEscapes(
31 /^\p{IDSB}+$/u,
32 matchSymbols,
33 "\\p{IDSB}"
34 );
35
36 const nonMatchSymbols = buildString({
37 loneCodePoints: [],
38 ranges: [
39 [0x00DC00, 0x00DFFF],
40 [0x000000, 0x002FEF],
41 [0x002FF2, 0x002FF3],
42 [0x002FFE, 0x0031EE],
43 [0x0031F0, 0x00DBFF],
44 [0x00E000, 0x10FFFF]
45 ]
46 });
47 testPropertyEscapes(
48 /^\P{IDS_Binary_Operator}+$/u,
49 nonMatchSymbols,
50 "\\P{IDS_Binary_Operator}"
51 );
52 testPropertyEscapes(
53 /^\P{IDSB}+$/u,
54 nonMatchSymbols,
55 "\\P{IDSB}"
56 );
57
58 reportCompare(0, 0);