summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Cherokee.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Cherokee.js')
-rw-r--r--js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Cherokee.js77
1 files changed, 77 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Cherokee.js b/js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Cherokee.js
new file mode 100644
index 0000000000..e0408cb8cc
--- /dev/null
+++ b/js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Cherokee.js
@@ -0,0 +1,77 @@
+// 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=Cherokee`
+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: [
+ [0x0013A0, 0x0013F5],
+ [0x0013F8, 0x0013FD],
+ [0x00AB70, 0x00ABBF]
+ ]
+});
+testPropertyEscapes(
+ /^\p{Script_Extensions=Cherokee}+$/u,
+ matchSymbols,
+ "\\p{Script_Extensions=Cherokee}"
+);
+testPropertyEscapes(
+ /^\p{Script_Extensions=Cher}+$/u,
+ matchSymbols,
+ "\\p{Script_Extensions=Cher}"
+);
+testPropertyEscapes(
+ /^\p{scx=Cherokee}+$/u,
+ matchSymbols,
+ "\\p{scx=Cherokee}"
+);
+testPropertyEscapes(
+ /^\p{scx=Cher}+$/u,
+ matchSymbols,
+ "\\p{scx=Cher}"
+);
+
+const nonMatchSymbols = buildString({
+ loneCodePoints: [],
+ ranges: [
+ [0x00DC00, 0x00DFFF],
+ [0x000000, 0x00139F],
+ [0x0013F6, 0x0013F7],
+ [0x0013FE, 0x00AB6F],
+ [0x00ABC0, 0x00DBFF],
+ [0x00E000, 0x10FFFF]
+ ]
+});
+testPropertyEscapes(
+ /^\P{Script_Extensions=Cherokee}+$/u,
+ nonMatchSymbols,
+ "\\P{Script_Extensions=Cherokee}"
+);
+testPropertyEscapes(
+ /^\P{Script_Extensions=Cher}+$/u,
+ nonMatchSymbols,
+ "\\P{Script_Extensions=Cher}"
+);
+testPropertyEscapes(
+ /^\P{scx=Cherokee}+$/u,
+ nonMatchSymbols,
+ "\\P{scx=Cherokee}"
+);
+testPropertyEscapes(
+ /^\P{scx=Cher}+$/u,
+ nonMatchSymbols,
+ "\\P{scx=Cher}"
+);
+
+reportCompare(0, 0);