summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Sinhala.js
blob: 5a5d60e541a4b286b5e5ce09b58b1ee9e54ba62b (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
// 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 `Script_Extensions=Sinhala`
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: [
    0x000DBD,
    0x000DCA,
    0x000DD6
  ],
  ranges: [
    [0x000964, 0x000965],
    [0x000D81, 0x000D83],
    [0x000D85, 0x000D96],
    [0x000D9A, 0x000DB1],
    [0x000DB3, 0x000DBB],
    [0x000DC0, 0x000DC6],
    [0x000DCF, 0x000DD4],
    [0x000DD8, 0x000DDF],
    [0x000DE6, 0x000DEF],
    [0x000DF2, 0x000DF4],
    [0x0111E1, 0x0111F4]
  ]
});
testPropertyEscapes(
  /^\p{Script_Extensions=Sinhala}+$/u,
  matchSymbols,
  "\\p{Script_Extensions=Sinhala}"
);
testPropertyEscapes(
  /^\p{Script_Extensions=Sinh}+$/u,
  matchSymbols,
  "\\p{Script_Extensions=Sinh}"
);
testPropertyEscapes(
  /^\p{scx=Sinhala}+$/u,
  matchSymbols,
  "\\p{scx=Sinhala}"
);
testPropertyEscapes(
  /^\p{scx=Sinh}+$/u,
  matchSymbols,
  "\\p{scx=Sinh}"
);

const nonMatchSymbols = buildString({
  loneCodePoints: [
    0x000D84,
    0x000DB2,
    0x000DBC,
    0x000DD5,
    0x000DD7
  ],
  ranges: [
    [0x00DC00, 0x00DFFF],
    [0x000000, 0x000963],
    [0x000966, 0x000D80],
    [0x000D97, 0x000D99],
    [0x000DBE, 0x000DBF],
    [0x000DC7, 0x000DC9],
    [0x000DCB, 0x000DCE],
    [0x000DE0, 0x000DE5],
    [0x000DF0, 0x000DF1],
    [0x000DF5, 0x00DBFF],
    [0x00E000, 0x0111E0],
    [0x0111F5, 0x10FFFF]
  ]
});
testPropertyEscapes(
  /^\P{Script_Extensions=Sinhala}+$/u,
  nonMatchSymbols,
  "\\P{Script_Extensions=Sinhala}"
);
testPropertyEscapes(
  /^\P{Script_Extensions=Sinh}+$/u,
  nonMatchSymbols,
  "\\P{Script_Extensions=Sinh}"
);
testPropertyEscapes(
  /^\P{scx=Sinhala}+$/u,
  nonMatchSymbols,
  "\\P{scx=Sinhala}"
);
testPropertyEscapes(
  /^\P{scx=Sinh}+$/u,
  nonMatchSymbols,
  "\\P{scx=Sinh}"
);

reportCompare(0, 0);