summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_-_Ugaritic.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_-_Ugaritic.js')
-rw-r--r--js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_-_Ugaritic.js77
1 files changed, 77 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_-_Ugaritic.js b/js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_-_Ugaritic.js
new file mode 100644
index 0000000000..5b22589700
--- /dev/null
+++ b/js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_-_Ugaritic.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=Ugaritic`
+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: [
+ 0x01039F
+ ],
+ ranges: [
+ [0x010380, 0x01039D]
+ ]
+});
+testPropertyEscapes(
+ /^\p{Script=Ugaritic}+$/u,
+ matchSymbols,
+ "\\p{Script=Ugaritic}"
+);
+testPropertyEscapes(
+ /^\p{Script=Ugar}+$/u,
+ matchSymbols,
+ "\\p{Script=Ugar}"
+);
+testPropertyEscapes(
+ /^\p{sc=Ugaritic}+$/u,
+ matchSymbols,
+ "\\p{sc=Ugaritic}"
+);
+testPropertyEscapes(
+ /^\p{sc=Ugar}+$/u,
+ matchSymbols,
+ "\\p{sc=Ugar}"
+);
+
+const nonMatchSymbols = buildString({
+ loneCodePoints: [
+ 0x01039E
+ ],
+ ranges: [
+ [0x00DC00, 0x00DFFF],
+ [0x000000, 0x00DBFF],
+ [0x00E000, 0x01037F],
+ [0x0103A0, 0x10FFFF]
+ ]
+});
+testPropertyEscapes(
+ /^\P{Script=Ugaritic}+$/u,
+ nonMatchSymbols,
+ "\\P{Script=Ugaritic}"
+);
+testPropertyEscapes(
+ /^\P{Script=Ugar}+$/u,
+ nonMatchSymbols,
+ "\\P{Script=Ugar}"
+);
+testPropertyEscapes(
+ /^\P{sc=Ugaritic}+$/u,
+ nonMatchSymbols,
+ "\\P{sc=Ugaritic}"
+);
+testPropertyEscapes(
+ /^\P{sc=Ugar}+$/u,
+ nonMatchSymbols,
+ "\\P{sc=Ugar}"
+);
+
+reportCompare(0, 0);