Script_-_Tangsa.js (1485B)
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=Tangsa` 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 [0x016A70, 0x016ABE], 20 [0x016AC0, 0x016AC9] 21 ] 22 }); 23 testPropertyEscapes( 24 /^\p{Script=Tangsa}+$/u, 25 matchSymbols, 26 "\\p{Script=Tangsa}" 27 ); 28 testPropertyEscapes( 29 /^\p{Script=Tnsa}+$/u, 30 matchSymbols, 31 "\\p{Script=Tnsa}" 32 ); 33 testPropertyEscapes( 34 /^\p{sc=Tangsa}+$/u, 35 matchSymbols, 36 "\\p{sc=Tangsa}" 37 ); 38 testPropertyEscapes( 39 /^\p{sc=Tnsa}+$/u, 40 matchSymbols, 41 "\\p{sc=Tnsa}" 42 ); 43 44 const nonMatchSymbols = buildString({ 45 loneCodePoints: [ 46 0x016ABF 47 ], 48 ranges: [ 49 [0x00DC00, 0x00DFFF], 50 [0x000000, 0x00DBFF], 51 [0x00E000, 0x016A6F], 52 [0x016ACA, 0x10FFFF] 53 ] 54 }); 55 testPropertyEscapes( 56 /^\P{Script=Tangsa}+$/u, 57 nonMatchSymbols, 58 "\\P{Script=Tangsa}" 59 ); 60 testPropertyEscapes( 61 /^\P{Script=Tnsa}+$/u, 62 nonMatchSymbols, 63 "\\P{Script=Tnsa}" 64 ); 65 testPropertyEscapes( 66 /^\P{sc=Tangsa}+$/u, 67 nonMatchSymbols, 68 "\\P{sc=Tangsa}" 69 ); 70 testPropertyEscapes( 71 /^\P{sc=Tnsa}+$/u, 72 nonMatchSymbols, 73 "\\P{sc=Tnsa}" 74 ); 75 76 reportCompare(0, 0);