summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/RegExp/property-escapes/generated/General_Category_-_Currency_Symbol.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/tests/test262/built-ins/RegExp/property-escapes/generated/General_Category_-_Currency_Symbol.js')
-rw-r--r--js/src/tests/test262/built-ins/RegExp/property-escapes/generated/General_Category_-_Currency_Symbol.js134
1 files changed, 134 insertions, 0 deletions
diff --git a/js/src/tests/test262/built-ins/RegExp/property-escapes/generated/General_Category_-_Currency_Symbol.js b/js/src/tests/test262/built-ins/RegExp/property-escapes/generated/General_Category_-_Currency_Symbol.js
new file mode 100644
index 0000000000..692b589fa8
--- /dev/null
+++ b/js/src/tests/test262/built-ins/RegExp/property-escapes/generated/General_Category_-_Currency_Symbol.js
@@ -0,0 +1,134 @@
+// 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 `General_Category=Currency_Symbol`
+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: [
+ 0x000024,
+ 0x00058F,
+ 0x00060B,
+ 0x0009FB,
+ 0x000AF1,
+ 0x000BF9,
+ 0x000E3F,
+ 0x0017DB,
+ 0x00A838,
+ 0x00FDFC,
+ 0x00FE69,
+ 0x00FF04,
+ 0x01E2FF,
+ 0x01ECB0
+ ],
+ ranges: [
+ [0x0000A2, 0x0000A5],
+ [0x0007FE, 0x0007FF],
+ [0x0009F2, 0x0009F3],
+ [0x0020A0, 0x0020C0],
+ [0x00FFE0, 0x00FFE1],
+ [0x00FFE5, 0x00FFE6],
+ [0x011FDD, 0x011FE0]
+ ]
+});
+testPropertyEscapes(
+ /^\p{General_Category=Currency_Symbol}+$/u,
+ matchSymbols,
+ "\\p{General_Category=Currency_Symbol}"
+);
+testPropertyEscapes(
+ /^\p{General_Category=Sc}+$/u,
+ matchSymbols,
+ "\\p{General_Category=Sc}"
+);
+testPropertyEscapes(
+ /^\p{gc=Currency_Symbol}+$/u,
+ matchSymbols,
+ "\\p{gc=Currency_Symbol}"
+);
+testPropertyEscapes(
+ /^\p{gc=Sc}+$/u,
+ matchSymbols,
+ "\\p{gc=Sc}"
+);
+testPropertyEscapes(
+ /^\p{Currency_Symbol}+$/u,
+ matchSymbols,
+ "\\p{Currency_Symbol}"
+);
+testPropertyEscapes(
+ /^\p{Sc}+$/u,
+ matchSymbols,
+ "\\p{Sc}"
+);
+
+const nonMatchSymbols = buildString({
+ loneCodePoints: [],
+ ranges: [
+ [0x00DC00, 0x00DFFF],
+ [0x000000, 0x000023],
+ [0x000025, 0x0000A1],
+ [0x0000A6, 0x00058E],
+ [0x000590, 0x00060A],
+ [0x00060C, 0x0007FD],
+ [0x000800, 0x0009F1],
+ [0x0009F4, 0x0009FA],
+ [0x0009FC, 0x000AF0],
+ [0x000AF2, 0x000BF8],
+ [0x000BFA, 0x000E3E],
+ [0x000E40, 0x0017DA],
+ [0x0017DC, 0x00209F],
+ [0x0020C1, 0x00A837],
+ [0x00A839, 0x00DBFF],
+ [0x00E000, 0x00FDFB],
+ [0x00FDFD, 0x00FE68],
+ [0x00FE6A, 0x00FF03],
+ [0x00FF05, 0x00FFDF],
+ [0x00FFE2, 0x00FFE4],
+ [0x00FFE7, 0x011FDC],
+ [0x011FE1, 0x01E2FE],
+ [0x01E300, 0x01ECAF],
+ [0x01ECB1, 0x10FFFF]
+ ]
+});
+testPropertyEscapes(
+ /^\P{General_Category=Currency_Symbol}+$/u,
+ nonMatchSymbols,
+ "\\P{General_Category=Currency_Symbol}"
+);
+testPropertyEscapes(
+ /^\P{General_Category=Sc}+$/u,
+ nonMatchSymbols,
+ "\\P{General_Category=Sc}"
+);
+testPropertyEscapes(
+ /^\P{gc=Currency_Symbol}+$/u,
+ nonMatchSymbols,
+ "\\P{gc=Currency_Symbol}"
+);
+testPropertyEscapes(
+ /^\P{gc=Sc}+$/u,
+ nonMatchSymbols,
+ "\\P{gc=Sc}"
+);
+testPropertyEscapes(
+ /^\P{Currency_Symbol}+$/u,
+ nonMatchSymbols,
+ "\\P{Currency_Symbol}"
+);
+testPropertyEscapes(
+ /^\P{Sc}+$/u,
+ nonMatchSymbols,
+ "\\P{Sc}"
+);
+
+reportCompare(0, 0);