summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Extender.js
blob: 92f9fb26d17759aac187cea5eead3a37a52ea931 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
// Copyright 2022 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
author: Mathias Bynens
description: >
  Unicode property escapes for `Extender`
info: |
  Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
  Unicode v15.0.0
esid: sec-static-semantics-unicodematchproperty-p
features: [regexp-unicode-property-escapes]
includes: [regExpUtils.js]
---*/

const matchSymbols = buildString({
  loneCodePoints: [
    0x0000B7,
    0x000640,
    0x0007FA,
    0x000B55,
    0x000E46,
    0x000EC6,
    0x00180A,
    0x001843,
    0x001AA7,
    0x001C36,
    0x001C7B,
    0x003005,
    0x00A015,
    0x00A60C,
    0x00A9CF,
    0x00A9E6,
    0x00AA70,
    0x00AADD,
    0x00FF70,
    0x01135D,
    0x011A98,
    0x016FE3
  ],
  ranges: [
    [0x0002D0, 0x0002D1],
    [0x003031, 0x003035],
    [0x00309D, 0x00309E],
    [0x0030FC, 0x0030FE],
    [0x00AAF3, 0x00AAF4],
    [0x010781, 0x010782],
    [0x0115C6, 0x0115C8],
    [0x016B42, 0x016B43],
    [0x016FE0, 0x016FE1],
    [0x01E13C, 0x01E13D],
    [0x01E944, 0x01E946]
  ]
});
testPropertyEscapes(
  /^\p{Extender}+$/u,
  matchSymbols,
  "\\p{Extender}"
);
testPropertyEscapes(
  /^\p{Ext}+$/u,
  matchSymbols,
  "\\p{Ext}"
);

const nonMatchSymbols = buildString({
  loneCodePoints: [
    0x016FE2
  ],
  ranges: [
    [0x00DC00, 0x00DFFF],
    [0x000000, 0x0000B6],
    [0x0000B8, 0x0002CF],
    [0x0002D2, 0x00063F],
    [0x000641, 0x0007F9],
    [0x0007FB, 0x000B54],
    [0x000B56, 0x000E45],
    [0x000E47, 0x000EC5],
    [0x000EC7, 0x001809],
    [0x00180B, 0x001842],
    [0x001844, 0x001AA6],
    [0x001AA8, 0x001C35],
    [0x001C37, 0x001C7A],
    [0x001C7C, 0x003004],
    [0x003006, 0x003030],
    [0x003036, 0x00309C],
    [0x00309F, 0x0030FB],
    [0x0030FF, 0x00A014],
    [0x00A016, 0x00A60B],
    [0x00A60D, 0x00A9CE],
    [0x00A9D0, 0x00A9E5],
    [0x00A9E7, 0x00AA6F],
    [0x00AA71, 0x00AADC],
    [0x00AADE, 0x00AAF2],
    [0x00AAF5, 0x00DBFF],
    [0x00E000, 0x00FF6F],
    [0x00FF71, 0x010780],
    [0x010783, 0x01135C],
    [0x01135E, 0x0115C5],
    [0x0115C9, 0x011A97],
    [0x011A99, 0x016B41],
    [0x016B44, 0x016FDF],
    [0x016FE4, 0x01E13B],
    [0x01E13E, 0x01E943],
    [0x01E947, 0x10FFFF]
  ]
});
testPropertyEscapes(
  /^\P{Extender}+$/u,
  nonMatchSymbols,
  "\\P{Extender}"
);
testPropertyEscapes(
  /^\P{Ext}+$/u,
  nonMatchSymbols,
  "\\P{Ext}"
);

reportCompare(0, 0);