summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Sinhala.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Sinhala.js')
-rw-r--r--js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Sinhala.js101
1 files changed, 101 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Sinhala.js b/js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Sinhala.js
new file mode 100644
index 0000000000..5a5d60e541
--- /dev/null
+++ b/js/src/tests/test262/built-ins/RegExp/property-escapes/generated/Script_Extensions_-_Sinhala.js
@@ -0,0 +1,101 @@
+// 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=Sinhala`
+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: [
+ 0x000DBD,
+ 0x000DCA,
+ 0x000DD6
+ ],
+ ranges: [
+ [0x000964, 0x000965],
+ [0x000D81, 0x000D83],
+ [0x000D85, 0x000D96],
+ [0x000D9A, 0x000DB1],
+ [0x000DB3, 0x000DBB],
+ [0x000DC0, 0x000DC6],
+ [0x000DCF, 0x000DD4],
+ [0x000DD8, 0x000DDF],
+ [0x000DE6, 0x000DEF],
+ [0x000DF2, 0x000DF4],
+ [0x0111E1, 0x0111F4]
+ ]
+});
+testPropertyEscapes(
+ /^\p{Script_Extensions=Sinhala}+$/u,
+ matchSymbols,
+ "\\p{Script_Extensions=Sinhala}"
+);
+testPropertyEscapes(
+ /^\p{Script_Extensions=Sinh}+$/u,
+ matchSymbols,
+ "\\p{Script_Extensions=Sinh}"
+);
+testPropertyEscapes(
+ /^\p{scx=Sinhala}+$/u,
+ matchSymbols,
+ "\\p{scx=Sinhala}"
+);
+testPropertyEscapes(
+ /^\p{scx=Sinh}+$/u,
+ matchSymbols,
+ "\\p{scx=Sinh}"
+);
+
+const nonMatchSymbols = buildString({
+ loneCodePoints: [
+ 0x000D84,
+ 0x000DB2,
+ 0x000DBC,
+ 0x000DD5,
+ 0x000DD7
+ ],
+ ranges: [
+ [0x00DC00, 0x00DFFF],
+ [0x000000, 0x000963],
+ [0x000966, 0x000D80],
+ [0x000D97, 0x000D99],
+ [0x000DBE, 0x000DBF],
+ [0x000DC7, 0x000DC9],
+ [0x000DCB, 0x000DCE],
+ [0x000DE0, 0x000DE5],
+ [0x000DF0, 0x000DF1],
+ [0x000DF5, 0x00DBFF],
+ [0x00E000, 0x0111E0],
+ [0x0111F5, 0x10FFFF]
+ ]
+});
+testPropertyEscapes(
+ /^\P{Script_Extensions=Sinhala}+$/u,
+ nonMatchSymbols,
+ "\\P{Script_Extensions=Sinhala}"
+);
+testPropertyEscapes(
+ /^\P{Script_Extensions=Sinh}+$/u,
+ nonMatchSymbols,
+ "\\P{Script_Extensions=Sinh}"
+);
+testPropertyEscapes(
+ /^\P{scx=Sinhala}+$/u,
+ nonMatchSymbols,
+ "\\P{scx=Sinhala}"
+);
+testPropertyEscapes(
+ /^\P{scx=Sinh}+$/u,
+ nonMatchSymbols,
+ "\\P{scx=Sinh}"
+);
+
+reportCompare(0, 0);