| 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=Masaram_Gondi` |
| 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 |
0x011D3A |
| 19 |
], |
| 20 |
ranges: [ |
| 21 |
[0x011D00, 0x011D06], |
| 22 |
[0x011D08, 0x011D09], |
| 23 |
[0x011D0B, 0x011D36], |
| 24 |
[0x011D3C, 0x011D3D], |
| 25 |
[0x011D3F, 0x011D47], |
| 26 |
[0x011D50, 0x011D59] |
| 27 |
] |
| 28 |
}); |
| 29 |
testPropertyEscapes( |
| 30 |
/^\p{Script=Masaram_Gondi}+$/u, |
| 31 |
matchSymbols, |
| 32 |
"\\p{Script=Masaram_Gondi}" |
| 33 |
); |
| 34 |
testPropertyEscapes( |
| 35 |
/^\p{Script=Gonm}+$/u, |
| 36 |
matchSymbols, |
| 37 |
"\\p{Script=Gonm}" |
| 38 |
); |
| 39 |
testPropertyEscapes( |
| 40 |
/^\p{sc=Masaram_Gondi}+$/u, |
| 41 |
matchSymbols, |
| 42 |
"\\p{sc=Masaram_Gondi}" |
| 43 |
); |
| 44 |
testPropertyEscapes( |
| 45 |
/^\p{sc=Gonm}+$/u, |
| 46 |
matchSymbols, |
| 47 |
"\\p{sc=Gonm}" |
| 48 |
); |
| 49 |
|
| 50 |
const nonMatchSymbols = buildString({ |
| 51 |
loneCodePoints: [ |
| 52 |
0x011D07, |
| 53 |
0x011D0A, |
| 54 |
0x011D3B, |
| 55 |
0x011D3E |
| 56 |
], |
| 57 |
ranges: [ |
| 58 |
[0x00DC00, 0x00DFFF], |
| 59 |
[0x000000, 0x00DBFF], |
| 60 |
[0x00E000, 0x011CFF], |
| 61 |
[0x011D37, 0x011D39], |
| 62 |
[0x011D48, 0x011D4F], |
| 63 |
[0x011D5A, 0x10FFFF] |
| 64 |
] |
| 65 |
}); |
| 66 |
testPropertyEscapes( |
| 67 |
/^\P{Script=Masaram_Gondi}+$/u, |
| 68 |
nonMatchSymbols, |
| 69 |
"\\P{Script=Masaram_Gondi}" |
| 70 |
); |
| 71 |
testPropertyEscapes( |
| 72 |
/^\P{Script=Gonm}+$/u, |
| 73 |
nonMatchSymbols, |
| 74 |
"\\P{Script=Gonm}" |
| 75 |
); |
| 76 |
testPropertyEscapes( |
| 77 |
/^\P{sc=Masaram_Gondi}+$/u, |
| 78 |
nonMatchSymbols, |
| 79 |
"\\P{sc=Masaram_Gondi}" |
| 80 |
); |
| 81 |
testPropertyEscapes( |
| 82 |
/^\P{sc=Gonm}+$/u, |
| 83 |
nonMatchSymbols, |
| 84 |
"\\P{sc=Gonm}" |
| 85 |
); |
| 86 |
|
| 87 |
reportCompare(0, 0); |