summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Soft_Dotted.js
blob: 0c98e25b970862407685128b4022622d435e844d (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
120
121
// 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 `Soft_Dotted`
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: [
    0x00012F,
    0x000249,
    0x000268,
    0x00029D,
    0x0002B2,
    0x0003F3,
    0x000456,
    0x000458,
    0x001D62,
    0x001D96,
    0x001DA4,
    0x001DA8,
    0x001E2D,
    0x001ECB,
    0x002071,
    0x002C7C,
    0x01DF1A,
    0x01E068
  ],
  ranges: [
    [0x000069, 0x00006A],
    [0x002148, 0x002149],
    [0x01D422, 0x01D423],
    [0x01D456, 0x01D457],
    [0x01D48A, 0x01D48B],
    [0x01D4BE, 0x01D4BF],
    [0x01D4F2, 0x01D4F3],
    [0x01D526, 0x01D527],
    [0x01D55A, 0x01D55B],
    [0x01D58E, 0x01D58F],
    [0x01D5C2, 0x01D5C3],
    [0x01D5F6, 0x01D5F7],
    [0x01D62A, 0x01D62B],
    [0x01D65E, 0x01D65F],
    [0x01D692, 0x01D693],
    [0x01E04C, 0x01E04D]
  ]
});
testPropertyEscapes(
  /^\p{Soft_Dotted}+$/u,
  matchSymbols,
  "\\p{Soft_Dotted}"
);
testPropertyEscapes(
  /^\p{SD}+$/u,
  matchSymbols,
  "\\p{SD}"
);

const nonMatchSymbols = buildString({
  loneCodePoints: [
    0x000457
  ],
  ranges: [
    [0x00DC00, 0x00DFFF],
    [0x000000, 0x000068],
    [0x00006B, 0x00012E],
    [0x000130, 0x000248],
    [0x00024A, 0x000267],
    [0x000269, 0x00029C],
    [0x00029E, 0x0002B1],
    [0x0002B3, 0x0003F2],
    [0x0003F4, 0x000455],
    [0x000459, 0x001D61],
    [0x001D63, 0x001D95],
    [0x001D97, 0x001DA3],
    [0x001DA5, 0x001DA7],
    [0x001DA9, 0x001E2C],
    [0x001E2E, 0x001ECA],
    [0x001ECC, 0x002070],
    [0x002072, 0x002147],
    [0x00214A, 0x002C7B],
    [0x002C7D, 0x00DBFF],
    [0x00E000, 0x01D421],
    [0x01D424, 0x01D455],
    [0x01D458, 0x01D489],
    [0x01D48C, 0x01D4BD],
    [0x01D4C0, 0x01D4F1],
    [0x01D4F4, 0x01D525],
    [0x01D528, 0x01D559],
    [0x01D55C, 0x01D58D],
    [0x01D590, 0x01D5C1],
    [0x01D5C4, 0x01D5F5],
    [0x01D5F8, 0x01D629],
    [0x01D62C, 0x01D65D],
    [0x01D660, 0x01D691],
    [0x01D694, 0x01DF19],
    [0x01DF1B, 0x01E04B],
    [0x01E04E, 0x01E067],
    [0x01E069, 0x10FFFF]
  ]
});
testPropertyEscapes(
  /^\P{Soft_Dotted}+$/u,
  nonMatchSymbols,
  "\\P{Soft_Dotted}"
);
testPropertyEscapes(
  /^\P{SD}+$/u,
  nonMatchSymbols,
  "\\P{SD}"
);

reportCompare(0, 0);