Skip to content

Commit

Permalink
Update RegExp property escape tests per Unicode v13.0.0 (#2526)
Browse files Browse the repository at this point in the history
  • Loading branch information
mathiasbynens authored Mar 11, 2020
1 parent 22cd9fe commit 25c9e33
Show file tree
Hide file tree
Showing 403 changed files with 2,977 additions and 1,769 deletions.
4 changes: 2 additions & 2 deletions test/built-ins/RegExp/property-escapes/generated/ASCII.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019 Mathias Bynens. All rights reserved.
// Copyright 2020 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
Expand All @@ -7,7 +7,7 @@ description: >
Unicode property escapes for `ASCII`
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v12.1.0
Unicode v13.0.0
esid: sec-static-semantics-unicodematchproperty-p
features: [regexp-unicode-property-escapes]
includes: [regExpUtils.js]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019 Mathias Bynens. All rights reserved.
// Copyright 2020 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
Expand All @@ -7,7 +7,7 @@ description: >
Unicode property escapes for `ASCII_Hex_Digit`
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v12.1.0
Unicode v13.0.0
esid: sec-static-semantics-unicodematchproperty-p
features: [regexp-unicode-property-escapes]
includes: [regExpUtils.js]
Expand Down
108 changes: 70 additions & 38 deletions test/built-ins/RegExp/property-escapes/generated/Alphabetic.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2019 Mathias Bynens. All rights reserved.
// Copyright 2020 Mathias Bynens. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.

/*---
Expand All @@ -7,7 +7,7 @@ description: >
Unicode property escapes for `Alphabetic`
info: |
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
Unicode v12.1.0
Unicode v13.0.0
esid: sec-static-semantics-unicodematchproperty-p
features: [regexp-unicode-property-escapes]
includes: [regExpUtils.js]
Expand Down Expand Up @@ -93,18 +93,18 @@ const matchSymbols = buildString({
0x011288,
0x011350,
0x011357,
0x01145F,
0x0114C7,
0x011640,
0x011644,
0x0116B8,
0x0118FF,
0x011909,
0x0119E1,
0x011A9D,
0x011C40,
0x011D3A,
0x011D43,
0x011D98,
0x011FB0,
0x016FE3,
0x01BC9E,
0x01D4A2,
Expand Down Expand Up @@ -170,7 +170,7 @@ const matchSymbols = buildString({
[0x000840, 0x000858],
[0x000860, 0x00086A],
[0x0008A0, 0x0008B4],
[0x0008B6, 0x0008BD],
[0x0008B6, 0x0008C7],
[0x0008D4, 0x0008DF],
[0x0008E3, 0x0008E9],
[0x0008F0, 0x00093B],
Expand Down Expand Up @@ -262,8 +262,7 @@ const matchSymbols = buildString({
[0x000CD5, 0x000CD6],
[0x000CE0, 0x000CE3],
[0x000CF1, 0x000CF2],
[0x000D00, 0x000D03],
[0x000D05, 0x000D0C],
[0x000D00, 0x000D0C],
[0x000D0E, 0x000D10],
[0x000D12, 0x000D3A],
[0x000D3D, 0x000D44],
Expand All @@ -272,7 +271,7 @@ const matchSymbols = buildString({
[0x000D54, 0x000D57],
[0x000D5F, 0x000D63],
[0x000D7A, 0x000D7F],
[0x000D82, 0x000D83],
[0x000D81, 0x000D83],
[0x000D85, 0x000D96],
[0x000D9A, 0x000DB1],
[0x000DB3, 0x000DBB],
Expand Down Expand Up @@ -344,6 +343,7 @@ const matchSymbols = buildString({
[0x001A00, 0x001A1B],
[0x001A20, 0x001A5E],
[0x001A61, 0x001A74],
[0x001ABF, 0x001AC0],
[0x001B00, 0x001B33],
[0x001B35, 0x001B43],
[0x001B45, 0x001B4B],
Expand Down Expand Up @@ -413,10 +413,10 @@ const matchSymbols = buildString({
[0x0030FC, 0x0030FF],
[0x003105, 0x00312F],
[0x003131, 0x00318E],
[0x0031A0, 0x0031BA],
[0x0031A0, 0x0031BF],
[0x0031F0, 0x0031FF],
[0x003400, 0x004DB5],
[0x004E00, 0x009FEF],
[0x003400, 0x004DBF],
[0x004E00, 0x009FFC],
[0x00A000, 0x00A48C],
[0x00A4D0, 0x00A4FD],
[0x00A500, 0x00A60C],
Expand All @@ -428,8 +428,8 @@ const matchSymbols = buildString({
[0x00A717, 0x00A71F],
[0x00A722, 0x00A788],
[0x00A78B, 0x00A7BF],
[0x00A7C2, 0x00A7C6],
[0x00A7F7, 0x00A805],
[0x00A7C2, 0x00A7CA],
[0x00A7F5, 0x00A805],
[0x00A807, 0x00A827],
[0x00A840, 0x00A873],
[0x00A880, 0x00A8C3],
Expand All @@ -455,7 +455,7 @@ const matchSymbols = buildString({
[0x00AB20, 0x00AB26],
[0x00AB28, 0x00AB2E],
[0x00AB30, 0x00AB5A],
[0x00AB5C, 0x00AB67],
[0x00AB5C, 0x00AB69],
[0x00AB70, 0x00ABEA],
[0x00AC00, 0x00D7A3],
[0x00D7B0, 0x00D7C6],
Expand Down Expand Up @@ -537,17 +537,22 @@ const matchSymbols = buildString({
[0x010C80, 0x010CB2],
[0x010CC0, 0x010CF2],
[0x010D00, 0x010D27],
[0x010E80, 0x010EA9],
[0x010EAB, 0x010EAC],
[0x010EB0, 0x010EB1],
[0x010F00, 0x010F1C],
[0x010F30, 0x010F45],
[0x010FB0, 0x010FC4],
[0x010FE0, 0x010FF6],
[0x011000, 0x011045],
[0x011082, 0x0110B8],
[0x0110D0, 0x0110E8],
[0x011100, 0x011132],
[0x011144, 0x011146],
[0x011144, 0x011147],
[0x011150, 0x011172],
[0x011180, 0x0111BF],
[0x0111C1, 0x0111C4],
[0x0111CE, 0x0111CF],
[0x011200, 0x011211],
[0x011213, 0x011234],
[0x011280, 0x011286],
Expand All @@ -569,6 +574,7 @@ const matchSymbols = buildString({
[0x011400, 0x011441],
[0x011443, 0x011445],
[0x011447, 0x01144A],
[0x01145F, 0x011461],
[0x011480, 0x0114C1],
[0x0114C4, 0x0114C5],
[0x011580, 0x0115B5],
Expand All @@ -580,6 +586,13 @@ const matchSymbols = buildString({
[0x01171D, 0x01172A],
[0x011800, 0x011838],
[0x0118A0, 0x0118DF],
[0x0118FF, 0x011906],
[0x01190C, 0x011913],
[0x011915, 0x011916],
[0x011918, 0x011935],
[0x011937, 0x011938],
[0x01193B, 0x01193C],
[0x01193F, 0x011942],
[0x0119A0, 0x0119A7],
[0x0119AA, 0x0119D7],
[0x0119DA, 0x0119DF],
Expand Down Expand Up @@ -623,8 +636,10 @@ const matchSymbols = buildString({
[0x016F4F, 0x016F87],
[0x016F8F, 0x016F9F],
[0x016FE0, 0x016FE1],
[0x016FF0, 0x016FF1],
[0x017000, 0x0187F7],
[0x018800, 0x018AF2],
[0x018800, 0x018CD5],
[0x018D00, 0x018D08],
[0x01B000, 0x01B11E],
[0x01B150, 0x01B152],
[0x01B164, 0x01B167],
Expand Down Expand Up @@ -690,12 +705,13 @@ const matchSymbols = buildString({
[0x01F130, 0x01F149],
[0x01F150, 0x01F169],
[0x01F170, 0x01F189],
[0x020000, 0x02A6D6],
[0x020000, 0x02A6DD],
[0x02A700, 0x02B734],
[0x02B740, 0x02B81D],
[0x02B820, 0x02CEA1],
[0x02CEB0, 0x02EBE0],
[0x02F800, 0x02FA1D]
[0x02F800, 0x02FA1D],
[0x030000, 0x03134A]
]
});
testPropertyEscapes(
Expand Down Expand Up @@ -775,12 +791,12 @@ const nonMatchSymbols = buildString({
0x000CC5,
0x000CC9,
0x000CDF,
0x000D04,
0x000D0D,
0x000D11,
0x000D45,
0x000D49,
0x000D4D,
0x000D80,
0x000D84,
0x000DB2,
0x000DBC,
Expand Down Expand Up @@ -873,6 +889,7 @@ const nonMatchSymbols = buildString({
0x010A14,
0x010A18,
0x010AC8,
0x010EAA,
0x0111C0,
0x0111DB,
0x011212,
Expand All @@ -888,6 +905,9 @@ const nonMatchSymbols = buildString({
0x011446,
0x0114C6,
0x01163F,
0x011914,
0x011917,
0x011936,
0x0119E0,
0x0119E2,
0x011C09,
Expand Down Expand Up @@ -996,7 +1016,7 @@ const nonMatchSymbols = buildString({
[0x00082D, 0x00083F],
[0x000859, 0x00085F],
[0x00086B, 0x00089F],
[0x0008BE, 0x0008D3],
[0x0008C8, 0x0008D3],
[0x0008E0, 0x0008E2],
[0x0008EA, 0x0008EF],
[0x000951, 0x000954],
Expand Down Expand Up @@ -1058,7 +1078,6 @@ const nonMatchSymbols = buildString({
[0x000D4F, 0x000D53],
[0x000D58, 0x000D5E],
[0x000D64, 0x000D79],
[0x000D80, 0x000D81],
[0x000D97, 0x000D99],
[0x000DBE, 0x000DBF],
[0x000DC7, 0x000DCE],
Expand Down Expand Up @@ -1115,7 +1134,8 @@ const nonMatchSymbols = buildString({
[0x001A1C, 0x001A1F],
[0x001A5F, 0x001A60],
[0x001A75, 0x001AA6],
[0x001AA8, 0x001AFF],
[0x001AA8, 0x001ABE],
[0x001AC1, 0x001AFF],
[0x001B4C, 0x001B7F],
[0x001BAA, 0x001BAB],
[0x001BB0, 0x001BB9],
Expand Down Expand Up @@ -1171,10 +1191,10 @@ const nonMatchSymbols = buildString({
[0x003097, 0x00309C],
[0x003100, 0x003104],
[0x00318F, 0x00319F],
[0x0031BB, 0x0031EF],
[0x0031C0, 0x0031EF],
[0x003200, 0x0033FF],
[0x004DB6, 0x004DFF],
[0x009FF0, 0x009FFF],
[0x004DC0, 0x004DFF],
[0x009FFD, 0x009FFF],
[0x00A48D, 0x00A4CF],
[0x00A4FE, 0x00A4FF],
[0x00A60D, 0x00A60F],
Expand All @@ -1186,7 +1206,7 @@ const nonMatchSymbols = buildString({
[0x00A720, 0x00A721],
[0x00A789, 0x00A78A],
[0x00A7C0, 0x00A7C1],
[0x00A7C7, 0x00A7F6],
[0x00A7CB, 0x00A7F4],
[0x00A828, 0x00A83F],
[0x00A874, 0x00A87F],
[0x00A8C6, 0x00A8F1],
Expand All @@ -1208,7 +1228,7 @@ const nonMatchSymbols = buildString({
[0x00AB07, 0x00AB08],
[0x00AB0F, 0x00AB10],
[0x00AB17, 0x00AB1F],
[0x00AB68, 0x00AB6F],
[0x00AB6A, 0x00AB6F],
[0x00ABEB, 0x00ABFF],
[0x00D7A4, 0x00D7AF],
[0x00D7C7, 0x00D7CA],
Expand Down Expand Up @@ -1274,19 +1294,23 @@ const nonMatchSymbols = buildString({
[0x010C49, 0x010C7F],
[0x010CB3, 0x010CBF],
[0x010CF3, 0x010CFF],
[0x010D28, 0x010EFF],
[0x010D28, 0x010E7F],
[0x010EAD, 0x010EAF],
[0x010EB2, 0x010EFF],
[0x010F1D, 0x010F26],
[0x010F28, 0x010F2F],
[0x010F46, 0x010FDF],
[0x010F46, 0x010FAF],
[0x010FC5, 0x010FDF],
[0x010FF7, 0x010FFF],
[0x011046, 0x011081],
[0x0110B9, 0x0110CF],
[0x0110E9, 0x0110FF],
[0x011133, 0x011143],
[0x011147, 0x01114F],
[0x011148, 0x01114F],
[0x011173, 0x011175],
[0x011177, 0x01117F],
[0x0111C5, 0x0111D9],
[0x0111C5, 0x0111CD],
[0x0111D0, 0x0111D9],
[0x0111DD, 0x0111FF],
[0x011235, 0x011236],
[0x011238, 0x01123D],
Expand All @@ -1303,7 +1327,7 @@ const nonMatchSymbols = buildString({
[0x011358, 0x01135C],
[0x011364, 0x0113FF],
[0x01144B, 0x01145E],
[0x011460, 0x01147F],
[0x011462, 0x01147F],
[0x0114C2, 0x0114C3],
[0x0114C8, 0x01157F],
[0x0115B6, 0x0115B7],
Expand All @@ -1317,7 +1341,11 @@ const nonMatchSymbols = buildString({
[0x01172B, 0x0117FF],
[0x011839, 0x01189F],
[0x0118E0, 0x0118FE],
[0x011900, 0x01199F],
[0x011907, 0x011908],
[0x01190A, 0x01190B],
[0x011939, 0x01193A],
[0x01193D, 0x01193E],
[0x011943, 0x01199F],
[0x0119A8, 0x0119A9],
[0x0119D8, 0x0119D9],
[0x0119E5, 0x0119FF],
Expand All @@ -1333,7 +1361,8 @@ const nonMatchSymbols = buildString({
[0x011D44, 0x011D45],
[0x011D48, 0x011D5F],
[0x011D99, 0x011EDF],
[0x011EF7, 0x011FFF],
[0x011EF7, 0x011FAF],
[0x011FB1, 0x011FFF],
[0x01239A, 0x0123FF],
[0x01246F, 0x01247F],
[0x012544, 0x012FFF],
Expand All @@ -1350,9 +1379,11 @@ const nonMatchSymbols = buildString({
[0x016F4B, 0x016F4E],
[0x016F88, 0x016F8E],
[0x016FA0, 0x016FDF],
[0x016FE4, 0x016FFF],
[0x016FE4, 0x016FEF],
[0x016FF2, 0x016FFF],
[0x0187F8, 0x0187FF],
[0x018AF3, 0x01AFFF],
[0x018CD6, 0x018CFF],
[0x018D09, 0x01AFFF],
[0x01B11F, 0x01B14F],
[0x01B153, 0x01B163],
[0x01B168, 0x01B16F],
Expand Down Expand Up @@ -1389,12 +1420,13 @@ const nonMatchSymbols = buildString({
[0x01F14A, 0x01F14F],
[0x01F16A, 0x01F16F],
[0x01F18A, 0x01FFFF],
[0x02A6D7, 0x02A6FF],
[0x02A6DE, 0x02A6FF],
[0x02B735, 0x02B73F],
[0x02B81E, 0x02B81F],
[0x02CEA2, 0x02CEAF],
[0x02EBE1, 0x02F7FF],
[0x02FA1E, 0x10FFFF]
[0x02FA1E, 0x02FFFF],
[0x03134B, 0x10FFFF]
]
});
testPropertyEscapes(
Expand Down
Loading

0 comments on commit 25c9e33

Please sign in to comment.