diff options
Diffstat (limited to 'js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_-_Manichaean.js')
-rw-r--r-- | js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_-_Manichaean.js | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_-_Manichaean.js b/js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_-_Manichaean.js new file mode 100644 index 0000000000..1961193439 --- /dev/null +++ b/js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_-_Manichaean.js @@ -0,0 +1,75 @@ +// 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=Manichaean` +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: [], + ranges: [ + [0x010AC0, 0x010AE6], + [0x010AEB, 0x010AF6] + ] +}); +testPropertyEscapes( + /^\p{Script=Manichaean}+$/u, + matchSymbols, + "\\p{Script=Manichaean}" +); +testPropertyEscapes( + /^\p{Script=Mani}+$/u, + matchSymbols, + "\\p{Script=Mani}" +); +testPropertyEscapes( + /^\p{sc=Manichaean}+$/u, + matchSymbols, + "\\p{sc=Manichaean}" +); +testPropertyEscapes( + /^\p{sc=Mani}+$/u, + matchSymbols, + "\\p{sc=Mani}" +); + +const nonMatchSymbols = buildString({ + loneCodePoints: [], + ranges: [ + [0x00DC00, 0x00DFFF], + [0x000000, 0x00DBFF], + [0x00E000, 0x010ABF], + [0x010AE7, 0x010AEA], + [0x010AF7, 0x10FFFF] + ] +}); +testPropertyEscapes( + /^\P{Script=Manichaean}+$/u, + nonMatchSymbols, + "\\P{Script=Manichaean}" +); +testPropertyEscapes( + /^\P{Script=Mani}+$/u, + nonMatchSymbols, + "\\P{Script=Mani}" +); +testPropertyEscapes( + /^\P{sc=Manichaean}+$/u, + nonMatchSymbols, + "\\P{sc=Manichaean}" +); +testPropertyEscapes( + /^\P{sc=Mani}+$/u, + nonMatchSymbols, + "\\P{sc=Mani}" +); + +reportCompare(0, 0); |