// Copyright 2025 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=Beria_Erfe`
info: |
  Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
  Unicode v17.0.0
esid: sec-static-semantics-unicodematchproperty-p
features: [regexp-unicode-property-escapes]
includes: [regExpUtils.js]
---*/

const matchSymbols = buildString({
  loneCodePoints: [],
  ranges: [
    [0x016EA0, 0x016EB8],
    [0x016EBB, 0x016ED3]
  ]
});
testPropertyEscapes(
  /^\p{Script_Extensions=Beria_Erfe}+$/u,
  matchSymbols,
  "\\p{Script_Extensions=Beria_Erfe}"
);
testPropertyEscapes(
  /^\p{Script_Extensions=Berf}+$/u,
  matchSymbols,
  "\\p{Script_Extensions=Berf}"
);
testPropertyEscapes(
  /^\p{scx=Beria_Erfe}+$/u,
  matchSymbols,
  "\\p{scx=Beria_Erfe}"
);
testPropertyEscapes(
  /^\p{scx=Berf}+$/u,
  matchSymbols,
  "\\p{scx=Berf}"
);

const nonMatchSymbols = buildString({
  loneCodePoints: [],
  ranges: [
    [0x00DC00, 0x00DFFF],
    [0x000000, 0x00DBFF],
    [0x00E000, 0x016E9F],
    [0x016EB9, 0x016EBA],
    [0x016ED4, 0x10FFFF]
  ]
});
testPropertyEscapes(
  /^\P{Script_Extensions=Beria_Erfe}+$/u,
  nonMatchSymbols,
  "\\P{Script_Extensions=Beria_Erfe}"
);
testPropertyEscapes(
  /^\P{Script_Extensions=Berf}+$/u,
  nonMatchSymbols,
  "\\P{Script_Extensions=Berf}"
);
testPropertyEscapes(
  /^\P{scx=Beria_Erfe}+$/u,
  nonMatchSymbols,
  "\\P{scx=Beria_Erfe}"
);
testPropertyEscapes(
  /^\P{scx=Berf}+$/u,
  nonMatchSymbols,
  "\\P{scx=Berf}"
);
