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