Script_-_Adlam.js (1538B)
1 // Copyright 2025 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=Adlam` 8 info: | 9 Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests 10 Unicode v17.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 ranges: [ 19 [0x01E900, 0x01E94B], 20 [0x01E950, 0x01E959], 21 [0x01E95E, 0x01E95F] 22 ] 23 }); 24 testPropertyEscapes( 25 /^\p{Script=Adlam}+$/u, 26 matchSymbols, 27 "\\p{Script=Adlam}" 28 ); 29 testPropertyEscapes( 30 /^\p{Script=Adlm}+$/u, 31 matchSymbols, 32 "\\p{Script=Adlm}" 33 ); 34 testPropertyEscapes( 35 /^\p{sc=Adlam}+$/u, 36 matchSymbols, 37 "\\p{sc=Adlam}" 38 ); 39 testPropertyEscapes( 40 /^\p{sc=Adlm}+$/u, 41 matchSymbols, 42 "\\p{sc=Adlm}" 43 ); 44 45 const nonMatchSymbols = buildString({ 46 loneCodePoints: [], 47 ranges: [ 48 [0x00DC00, 0x00DFFF], 49 [0x000000, 0x00DBFF], 50 [0x00E000, 0x01E8FF], 51 [0x01E94C, 0x01E94F], 52 [0x01E95A, 0x01E95D], 53 [0x01E960, 0x10FFFF] 54 ] 55 }); 56 testPropertyEscapes( 57 /^\P{Script=Adlam}+$/u, 58 nonMatchSymbols, 59 "\\P{Script=Adlam}" 60 ); 61 testPropertyEscapes( 62 /^\P{Script=Adlm}+$/u, 63 nonMatchSymbols, 64 "\\P{Script=Adlm}" 65 ); 66 testPropertyEscapes( 67 /^\P{sc=Adlam}+$/u, 68 nonMatchSymbols, 69 "\\P{sc=Adlam}" 70 ); 71 testPropertyEscapes( 72 /^\P{sc=Adlm}+$/u, 73 nonMatchSymbols, 74 "\\P{sc=Adlm}" 75 ); 76 77 reportCompare(0, 0);