summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Quotation_Mark.js
blob: bf9e0c957e01fd9d17500808369ab320e4cee427 (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
// 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 `Quotation_Mark`
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: [
    0x000022,
    0x000027,
    0x0000AB,
    0x0000BB,
    0x002E42,
    0x00FF02,
    0x00FF07
  ],
  ranges: [
    [0x002018, 0x00201F],
    [0x002039, 0x00203A],
    [0x00300C, 0x00300F],
    [0x00301D, 0x00301F],
    [0x00FE41, 0x00FE44],
    [0x00FF62, 0x00FF63]
  ]
});
testPropertyEscapes(
  /^\p{Quotation_Mark}+$/u,
  matchSymbols,
  "\\p{Quotation_Mark}"
);
testPropertyEscapes(
  /^\p{QMark}+$/u,
  matchSymbols,
  "\\p{QMark}"
);

const nonMatchSymbols = buildString({
  loneCodePoints: [],
  ranges: [
    [0x00DC00, 0x00DFFF],
    [0x000000, 0x000021],
    [0x000023, 0x000026],
    [0x000028, 0x0000AA],
    [0x0000AC, 0x0000BA],
    [0x0000BC, 0x002017],
    [0x002020, 0x002038],
    [0x00203B, 0x002E41],
    [0x002E43, 0x00300B],
    [0x003010, 0x00301C],
    [0x003020, 0x00DBFF],
    [0x00E000, 0x00FE40],
    [0x00FE45, 0x00FF01],
    [0x00FF03, 0x00FF06],
    [0x00FF08, 0x00FF61],
    [0x00FF64, 0x10FFFF]
  ]
});
testPropertyEscapes(
  /^\P{Quotation_Mark}+$/u,
  nonMatchSymbols,
  "\\P{Quotation_Mark}"
);
testPropertyEscapes(
  /^\P{QMark}+$/u,
  nonMatchSymbols,
  "\\P{QMark}"
);

reportCompare(0, 0);