| 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 `Script_Extensions=Ethiopic` |
| 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 |
0x00030E, |
| 19 |
0x001258, |
| 20 |
0x0012C0 |
| 21 |
], |
| 22 |
ranges: [ |
| 23 |
[0x001200, 0x001248], |
| 24 |
[0x00124A, 0x00124D], |
| 25 |
[0x001250, 0x001256], |
| 26 |
[0x00125A, 0x00125D], |
| 27 |
[0x001260, 0x001288], |
| 28 |
[0x00128A, 0x00128D], |
| 29 |
[0x001290, 0x0012B0], |
| 30 |
[0x0012B2, 0x0012B5], |
| 31 |
[0x0012B8, 0x0012BE], |
| 32 |
[0x0012C2, 0x0012C5], |
| 33 |
[0x0012C8, 0x0012D6], |
| 34 |
[0x0012D8, 0x001310], |
| 35 |
[0x001312, 0x001315], |
| 36 |
[0x001318, 0x00135A], |
| 37 |
[0x00135D, 0x00137C], |
| 38 |
[0x001380, 0x001399], |
| 39 |
[0x002D80, 0x002D96], |
| 40 |
[0x002DA0, 0x002DA6], |
| 41 |
[0x002DA8, 0x002DAE], |
| 42 |
[0x002DB0, 0x002DB6], |
| 43 |
[0x002DB8, 0x002DBE], |
| 44 |
[0x002DC0, 0x002DC6], |
| 45 |
[0x002DC8, 0x002DCE], |
| 46 |
[0x002DD0, 0x002DD6], |
| 47 |
[0x002DD8, 0x002DDE], |
| 48 |
[0x00AB01, 0x00AB06], |
| 49 |
[0x00AB09, 0x00AB0E], |
| 50 |
[0x00AB11, 0x00AB16], |
| 51 |
[0x00AB20, 0x00AB26], |
| 52 |
[0x00AB28, 0x00AB2E], |
| 53 |
[0x01E7E0, 0x01E7E6], |
| 54 |
[0x01E7E8, 0x01E7EB], |
| 55 |
[0x01E7ED, 0x01E7EE], |
| 56 |
[0x01E7F0, 0x01E7FE] |
| 57 |
] |
| 58 |
}); |
| 59 |
testPropertyEscapes( |
| 60 |
/^\p{Script_Extensions=Ethiopic}+$/u, |
| 61 |
matchSymbols, |
| 62 |
"\\p{Script_Extensions=Ethiopic}" |
| 63 |
); |
| 64 |
testPropertyEscapes( |
| 65 |
/^\p{Script_Extensions=Ethi}+$/u, |
| 66 |
matchSymbols, |
| 67 |
"\\p{Script_Extensions=Ethi}" |
| 68 |
); |
| 69 |
testPropertyEscapes( |
| 70 |
/^\p{scx=Ethiopic}+$/u, |
| 71 |
matchSymbols, |
| 72 |
"\\p{scx=Ethiopic}" |
| 73 |
); |
| 74 |
testPropertyEscapes( |
| 75 |
/^\p{scx=Ethi}+$/u, |
| 76 |
matchSymbols, |
| 77 |
"\\p{scx=Ethi}" |
| 78 |
); |
| 79 |
|
| 80 |
const nonMatchSymbols = buildString({ |
| 81 |
loneCodePoints: [ |
| 82 |
0x001249, |
| 83 |
0x001257, |
| 84 |
0x001259, |
| 85 |
0x001289, |
| 86 |
0x0012B1, |
| 87 |
0x0012BF, |
| 88 |
0x0012C1, |
| 89 |
0x0012D7, |
| 90 |
0x001311, |
| 91 |
0x002DA7, |
| 92 |
0x002DAF, |
| 93 |
0x002DB7, |
| 94 |
0x002DBF, |
| 95 |
0x002DC7, |
| 96 |
0x002DCF, |
| 97 |
0x002DD7, |
| 98 |
0x00AB27, |
| 99 |
0x01E7E7, |
| 100 |
0x01E7EC, |
| 101 |
0x01E7EF |
| 102 |
], |
| 103 |
ranges: [ |
| 104 |
[0x00DC00, 0x00DFFF], |
| 105 |
[0x000000, 0x00030D], |
| 106 |
[0x00030F, 0x0011FF], |
| 107 |
[0x00124E, 0x00124F], |
| 108 |
[0x00125E, 0x00125F], |
| 109 |
[0x00128E, 0x00128F], |
| 110 |
[0x0012B6, 0x0012B7], |
| 111 |
[0x0012C6, 0x0012C7], |
| 112 |
[0x001316, 0x001317], |
| 113 |
[0x00135B, 0x00135C], |
| 114 |
[0x00137D, 0x00137F], |
| 115 |
[0x00139A, 0x002D7F], |
| 116 |
[0x002D97, 0x002D9F], |
| 117 |
[0x002DDF, 0x00AB00], |
| 118 |
[0x00AB07, 0x00AB08], |
| 119 |
[0x00AB0F, 0x00AB10], |
| 120 |
[0x00AB17, 0x00AB1F], |
| 121 |
[0x00AB2F, 0x00DBFF], |
| 122 |
[0x00E000, 0x01E7DF], |
| 123 |
[0x01E7FF, 0x10FFFF] |
| 124 |
] |
| 125 |
}); |
| 126 |
testPropertyEscapes( |
| 127 |
/^\P{Script_Extensions=Ethiopic}+$/u, |
| 128 |
nonMatchSymbols, |
| 129 |
"\\P{Script_Extensions=Ethiopic}" |
| 130 |
); |
| 131 |
testPropertyEscapes( |
| 132 |
/^\P{Script_Extensions=Ethi}+$/u, |
| 133 |
nonMatchSymbols, |
| 134 |
"\\P{Script_Extensions=Ethi}" |
| 135 |
); |
| 136 |
testPropertyEscapes( |
| 137 |
/^\P{scx=Ethiopic}+$/u, |
| 138 |
nonMatchSymbols, |
| 139 |
"\\P{scx=Ethiopic}" |
| 140 |
); |
| 141 |
testPropertyEscapes( |
| 142 |
/^\P{scx=Ethi}+$/u, |
| 143 |
nonMatchSymbols, |
| 144 |
"\\P{scx=Ethi}" |
| 145 |
); |
| 146 |
|
| 147 |
reportCompare(0, 0); |