diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Glagolitic.js')
-rw-r--r-- | js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Glagolitic.js | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Glagolitic.js b/js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Glagolitic.js new file mode 100644 index 0000000000..16f0dfbd30 --- /dev/null +++ b/js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Glagolitic.js @@ -0,0 +1,93 @@ +// Copyright 2022 Mathias Bynens. All rights reserved. +// This code is governed by the BSD license found in the LICENSE file. + +/*--- +author: Mathias Bynens +description: > + Unicode property escapes for `Script_Extensions=Glagolitic` +info: | + Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests + Unicode v15.0.0 +esid: sec-static-semantics-unicodematchproperty-p +features: [regexp-unicode-property-escapes] +includes: [regExpUtils.js] +---*/ + +const matchSymbols = buildString({ + loneCodePoints: [ + 0x000484, + 0x000487, + 0x002E43, + 0x00A66F + ], + ranges: [ + [0x002C00, 0x002C5F], + [0x01E000, 0x01E006], + [0x01E008, 0x01E018], + [0x01E01B, 0x01E021], + [0x01E023, 0x01E024], + [0x01E026, 0x01E02A] + ] +}); +testPropertyEscapes( + /^\p{Script_Extensions=Glagolitic}+$/u, + matchSymbols, + "\\p{Script_Extensions=Glagolitic}" +); +testPropertyEscapes( + /^\p{Script_Extensions=Glag}+$/u, + matchSymbols, + "\\p{Script_Extensions=Glag}" +); +testPropertyEscapes( + /^\p{scx=Glagolitic}+$/u, + matchSymbols, + "\\p{scx=Glagolitic}" +); +testPropertyEscapes( + /^\p{scx=Glag}+$/u, + matchSymbols, + "\\p{scx=Glag}" +); + +const nonMatchSymbols = buildString({ + loneCodePoints: [ + 0x01E007, + 0x01E022, + 0x01E025 + ], + ranges: [ + [0x00DC00, 0x00DFFF], + [0x000000, 0x000483], + [0x000485, 0x000486], + [0x000488, 0x002BFF], + [0x002C60, 0x002E42], + [0x002E44, 0x00A66E], + [0x00A670, 0x00DBFF], + [0x00E000, 0x01DFFF], + [0x01E019, 0x01E01A], + [0x01E02B, 0x10FFFF] + ] +}); +testPropertyEscapes( + /^\P{Script_Extensions=Glagolitic}+$/u, + nonMatchSymbols, + "\\P{Script_Extensions=Glagolitic}" +); +testPropertyEscapes( + /^\P{Script_Extensions=Glag}+$/u, + nonMatchSymbols, + "\\P{Script_Extensions=Glag}" +); +testPropertyEscapes( + /^\P{scx=Glagolitic}+$/u, + nonMatchSymbols, + "\\P{scx=Glagolitic}" +); +testPropertyEscapes( + /^\P{scx=Glag}+$/u, + nonMatchSymbols, + "\\P{scx=Glag}" +); + +reportCompare(0, 0); |