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

const matchSymbols = buildString({
  loneCodePoints: [],
  ranges: [
    [0x014400, 0x014646]
  ]
});
testPropertyEscapes(
  /^\p{Script_Extensions=Anatolian_Hieroglyphs}+$/u,
  matchSymbols,
  "\\p{Script_Extensions=Anatolian_Hieroglyphs}"
);
testPropertyEscapes(
  /^\p{Script_Extensions=Hluw}+$/u,
  matchSymbols,
  "\\p{Script_Extensions=Hluw}"
);
testPropertyEscapes(
  /^\p{scx=Anatolian_Hieroglyphs}+$/u,
  matchSymbols,
  "\\p{scx=Anatolian_Hieroglyphs}"
);
testPropertyEscapes(
  /^\p{scx=Hluw}+$/u,
  matchSymbols,
  "\\p{scx=Hluw}"
);

const nonMatchSymbols = buildString({
  loneCodePoints: [],
  ranges: [
    [0x00DC00, 0x00DFFF],
    [0x000000, 0x00DBFF],
    [0x00E000, 0x0143FF],
    [0x014647, 0x10FFFF]
  ]
});
testPropertyEscapes(
  /^\P{Script_Extensions=Anatolian_Hieroglyphs}+$/u,
  nonMatchSymbols,
  "\\P{Script_Extensions=Anatolian_Hieroglyphs}"
);
testPropertyEscapes(
  /^\P{Script_Extensions=Hluw}+$/u,
  nonMatchSymbols,
  "\\P{Script_Extensions=Hluw}"
);
testPropertyEscapes(
  /^\P{scx=Anatolian_Hieroglyphs}+$/u,
  nonMatchSymbols,
  "\\P{scx=Anatolian_Hieroglyphs}"
);
testPropertyEscapes(
  /^\P{scx=Hluw}+$/u,
  nonMatchSymbols,
  "\\P{scx=Hluw}"
);
