Skip to content

Commit 96aac5f

Browse files
mathiasbynensptomato
authored andcommitted
Add tests for Unicode 17 property escapes
Issue: tc39/ecma262#3688 .
1 parent 27d7962 commit 96aac5f

File tree

578 files changed

+6590
-2098
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

578 files changed

+6590
-2098
lines changed

test/built-ins/RegExp/property-escapes/generated/ASCII.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Mathias Bynens. All rights reserved.
1+
// Copyright 2025 Mathias Bynens. All rights reserved.
22
// This code is governed by the BSD license found in the LICENSE file.
33

44
/*---
@@ -7,7 +7,7 @@ description: >
77
Unicode property escapes for `ASCII`
88
info: |
99
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
10-
Unicode v16.0.0
10+
Unicode v17.0.0
1111
esid: sec-static-semantics-unicodematchproperty-p
1212
features: [regexp-unicode-property-escapes]
1313
includes: [regExpUtils.js]

test/built-ins/RegExp/property-escapes/generated/ASCII_Hex_Digit.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Mathias Bynens. All rights reserved.
1+
// Copyright 2025 Mathias Bynens. All rights reserved.
22
// This code is governed by the BSD license found in the LICENSE file.
33

44
/*---
@@ -7,7 +7,7 @@ description: >
77
Unicode property escapes for `ASCII_Hex_Digit`
88
info: |
99
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
10-
Unicode v16.0.0
10+
Unicode v17.0.0
1111
esid: sec-static-semantics-unicodematchproperty-p
1212
features: [regexp-unicode-property-escapes]
1313
includes: [regExpUtils.js]

test/built-ins/RegExp/property-escapes/generated/Alphabetic.js

Lines changed: 47 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Mathias Bynens. All rights reserved.
1+
// Copyright 2025 Mathias Bynens. All rights reserved.
22
// This code is governed by the BSD license found in the LICENSE file.
33

44
/*---
@@ -7,7 +7,7 @@ description: >
77
Unicode property escapes for `Alphabetic`
88
info: |
99
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
10-
Unicode v16.0.0
10+
Unicode v17.0.0
1111
esid: sec-static-semantics-unicodematchproperty-p
1212
features: [regexp-unicode-property-escapes]
1313
includes: [regExpUtils.js]
@@ -41,7 +41,6 @@ const matchSymbols = buildString({
4141
0x000B9C,
4242
0x000BD0,
4343
0x000BD7,
44-
0x000C5D,
4544
0x000D4E,
4645
0x000DBD,
4746
0x000DD6,
@@ -77,7 +76,6 @@ const matchSymbols = buildString({
7776
0x002D2D,
7877
0x002D6F,
7978
0x002E2F,
80-
0x00A7D3,
8179
0x00A8C5,
8280
0x00A8FB,
8381
0x00A9CF,
@@ -87,7 +85,6 @@ const matchSymbols = buildString({
8785
0x010808,
8886
0x01083C,
8987
0x010D69,
90-
0x010EFC,
9188
0x010F27,
9289
0x0110C2,
9390
0x011176,
@@ -184,7 +181,7 @@ const matchSymbols = buildString({
184181
[0x000840, 0x000858],
185182
[0x000860, 0x00086A],
186183
[0x000870, 0x000887],
187-
[0x000889, 0x00088E],
184+
[0x000889, 0x00088F],
188185
[0x0008A0, 0x0008C9],
189186
[0x0008D4, 0x0008DF],
190187
[0x0008E3, 0x0008E9],
@@ -263,6 +260,7 @@ const matchSymbols = buildString({
263260
[0x000C4A, 0x000C4C],
264261
[0x000C55, 0x000C56],
265262
[0x000C58, 0x000C5A],
263+
[0x000C5C, 0x000C5D],
266264
[0x000C60, 0x000C63],
267265
[0x000C80, 0x000C83],
268266
[0x000C85, 0x000C8C],
@@ -274,7 +272,7 @@ const matchSymbols = buildString({
274272
[0x000CC6, 0x000CC8],
275273
[0x000CCA, 0x000CCC],
276274
[0x000CD5, 0x000CD6],
277-
[0x000CDD, 0x000CDE],
275+
[0x000CDC, 0x000CDE],
278276
[0x000CE0, 0x000CE3],
279277
[0x000CF1, 0x000CF3],
280278
[0x000D00, 0x000D0C],
@@ -439,10 +437,8 @@ const matchSymbols = buildString({
439437
[0x00A67F, 0x00A6EF],
440438
[0x00A717, 0x00A71F],
441439
[0x00A722, 0x00A788],
442-
[0x00A78B, 0x00A7CD],
443-
[0x00A7D0, 0x00A7D1],
444-
[0x00A7D5, 0x00A7DC],
445-
[0x00A7F2, 0x00A805],
440+
[0x00A78B, 0x00A7DC],
441+
[0x00A7F1, 0x00A805],
446442
[0x00A807, 0x00A827],
447443
[0x00A840, 0x00A873],
448444
[0x00A880, 0x00A8C3],
@@ -543,6 +539,7 @@ const matchSymbols = buildString({
543539
[0x0108F4, 0x0108F5],
544540
[0x010900, 0x010915],
545541
[0x010920, 0x010939],
542+
[0x010940, 0x010959],
546543
[0x010980, 0x0109B7],
547544
[0x0109BE, 0x0109BF],
548545
[0x010A00, 0x010A03],
@@ -567,7 +564,8 @@ const matchSymbols = buildString({
567564
[0x010E80, 0x010EA9],
568565
[0x010EAB, 0x010EAC],
569566
[0x010EB0, 0x010EB1],
570-
[0x010EC2, 0x010EC4],
567+
[0x010EC2, 0x010EC7],
568+
[0x010EFA, 0x010EFC],
571569
[0x010F00, 0x010F1C],
572570
[0x010F30, 0x010F45],
573571
[0x010F70, 0x010F81],
@@ -638,6 +636,7 @@ const matchSymbols = buildString({
638636
[0x011A35, 0x011A3E],
639637
[0x011A50, 0x011A97],
640638
[0x011AB0, 0x011AF8],
639+
[0x011B60, 0x011B67],
641640
[0x011BC0, 0x011BE0],
642641
[0x011C00, 0x011C08],
643642
[0x011C0A, 0x011C36],
@@ -656,6 +655,7 @@ const matchSymbols = buildString({
656655
[0x011D6A, 0x011D8E],
657656
[0x011D90, 0x011D91],
658657
[0x011D93, 0x011D96],
658+
[0x011DB0, 0x011DDB],
659659
[0x011EE0, 0x011EF6],
660660
[0x011F00, 0x011F10],
661661
[0x011F12, 0x011F3A],
@@ -679,14 +679,16 @@ const matchSymbols = buildString({
679679
[0x016B7D, 0x016B8F],
680680
[0x016D40, 0x016D6C],
681681
[0x016E40, 0x016E7F],
682+
[0x016EA0, 0x016EB8],
683+
[0x016EBB, 0x016ED3],
682684
[0x016F00, 0x016F4A],
683685
[0x016F4F, 0x016F87],
684686
[0x016F8F, 0x016F9F],
685687
[0x016FE0, 0x016FE1],
686-
[0x016FF0, 0x016FF1],
687-
[0x017000, 0x0187F7],
688-
[0x018800, 0x018CD5],
689-
[0x018CFF, 0x018D08],
688+
[0x016FF0, 0x016FF6],
689+
[0x017000, 0x018CD5],
690+
[0x018CFF, 0x018D1E],
691+
[0x018D80, 0x018DF2],
690692
[0x01AFF0, 0x01AFF3],
691693
[0x01AFF5, 0x01AFFB],
692694
[0x01AFFD, 0x01AFFE],
@@ -739,6 +741,9 @@ const matchSymbols = buildString({
739741
[0x01E2C0, 0x01E2EB],
740742
[0x01E4D0, 0x01E4EB],
741743
[0x01E5D0, 0x01E5ED],
744+
[0x01E6C0, 0x01E6DE],
745+
[0x01E6E0, 0x01E6F5],
746+
[0x01E6FE, 0x01E6FF],
742747
[0x01E7E0, 0x01E7E6],
743748
[0x01E7E8, 0x01E7EB],
744749
[0x01E7ED, 0x01E7EE],
@@ -766,14 +771,13 @@ const matchSymbols = buildString({
766771
[0x01F150, 0x01F169],
767772
[0x01F170, 0x01F189],
768773
[0x020000, 0x02A6DF],
769-
[0x02A700, 0x02B739],
770-
[0x02B740, 0x02B81D],
771-
[0x02B820, 0x02CEA1],
774+
[0x02A700, 0x02B81D],
775+
[0x02B820, 0x02CEAD],
772776
[0x02CEB0, 0x02EBE0],
773777
[0x02EBF0, 0x02EE5D],
774778
[0x02F800, 0x02FA1D],
775779
[0x030000, 0x03134A],
776-
[0x031350, 0x0323AF]
780+
[0x031350, 0x033479]
777781
]
778782
});
779783
testPropertyEscapes(
@@ -844,6 +848,7 @@ const nonMatchSymbols = buildString({
844848
0x000C45,
845849
0x000C49,
846850
0x000C57,
851+
0x000C5B,
847852
0x000C84,
848853
0x000C8D,
849854
0x000C91,
@@ -918,8 +923,6 @@ const nonMatchSymbols = buildString({
918923
0x0030A0,
919924
0x0030FB,
920925
0x003130,
921-
0x00A7D2,
922-
0x00A7D4,
923926
0x00A806,
924927
0x00A8C4,
925928
0x00A8FC,
@@ -1031,6 +1034,7 @@ const nonMatchSymbols = buildString({
10311034
0x01E007,
10321035
0x01E022,
10331036
0x01E025,
1037+
0x01E6DF,
10341038
0x01E7E7,
10351039
0x01E7EC,
10361040
0x01E7EF,
@@ -1100,7 +1104,7 @@ const nonMatchSymbols = buildString({
11001104
[0x00082D, 0x00083F],
11011105
[0x000859, 0x00085F],
11021106
[0x00086B, 0x00086F],
1103-
[0x00088F, 0x000896],
1107+
[0x000890, 0x000896],
11041108
[0x000898, 0x00089F],
11051109
[0x0008CA, 0x0008D3],
11061110
[0x0008E0, 0x0008E2],
@@ -1153,12 +1157,11 @@ const nonMatchSymbols = buildString({
11531157
[0x000BD8, 0x000BFF],
11541158
[0x000C3A, 0x000C3C],
11551159
[0x000C4D, 0x000C54],
1156-
[0x000C5B, 0x000C5C],
11571160
[0x000C5E, 0x000C5F],
11581161
[0x000C64, 0x000C7F],
11591162
[0x000CBA, 0x000CBC],
11601163
[0x000CCD, 0x000CD4],
1161-
[0x000CD7, 0x000CDC],
1164+
[0x000CD7, 0x000CDB],
11621165
[0x000CE4, 0x000CF0],
11631166
[0x000CF4, 0x000CFF],
11641167
[0x000D3B, 0x000D3C],
@@ -1292,8 +1295,7 @@ const nonMatchSymbols = buildString({
12921295
[0x00A6F0, 0x00A716],
12931296
[0x00A720, 0x00A721],
12941297
[0x00A789, 0x00A78A],
1295-
[0x00A7CE, 0x00A7CF],
1296-
[0x00A7DD, 0x00A7F1],
1298+
[0x00A7DD, 0x00A7F0],
12971299
[0x00A828, 0x00A83F],
12981300
[0x00A874, 0x00A87F],
12991301
[0x00A8C6, 0x00A8F1],
@@ -1369,7 +1371,8 @@ const nonMatchSymbols = buildString({
13691371
[0x01089F, 0x0108DF],
13701372
[0x0108F6, 0x0108FF],
13711373
[0x010916, 0x01091F],
1372-
[0x01093A, 0x01097F],
1374+
[0x01093A, 0x01093F],
1375+
[0x01095A, 0x01097F],
13731376
[0x0109B8, 0x0109BD],
13741377
[0x0109C0, 0x0109FF],
13751378
[0x010A07, 0x010A0B],
@@ -1390,7 +1393,7 @@ const nonMatchSymbols = buildString({
13901393
[0x010D86, 0x010E7F],
13911394
[0x010EAD, 0x010EAF],
13921395
[0x010EB2, 0x010EC1],
1393-
[0x010EC5, 0x010EFB],
1396+
[0x010EC8, 0x010EF9],
13941397
[0x010EFD, 0x010EFF],
13951398
[0x010F1D, 0x010F26],
13961399
[0x010F28, 0x010F2F],
@@ -1456,15 +1459,17 @@ const nonMatchSymbols = buildString({
14561459
[0x011A3F, 0x011A4F],
14571460
[0x011A98, 0x011A9C],
14581461
[0x011A9E, 0x011AAF],
1459-
[0x011AF9, 0x011BBF],
1462+
[0x011AF9, 0x011B5F],
1463+
[0x011B68, 0x011BBF],
14601464
[0x011BE1, 0x011BFF],
14611465
[0x011C41, 0x011C71],
14621466
[0x011C90, 0x011C91],
14631467
[0x011CB7, 0x011CFF],
14641468
[0x011D37, 0x011D39],
14651469
[0x011D44, 0x011D45],
14661470
[0x011D48, 0x011D5F],
1467-
[0x011D99, 0x011EDF],
1471+
[0x011D99, 0x011DAF],
1472+
[0x011DDC, 0x011EDF],
14681473
[0x011EF7, 0x011EFF],
14691474
[0x011F3B, 0x011F3D],
14701475
[0x011F41, 0x011FAF],
@@ -1487,15 +1492,17 @@ const nonMatchSymbols = buildString({
14871492
[0x016B78, 0x016B7C],
14881493
[0x016B90, 0x016D3F],
14891494
[0x016D6D, 0x016E3F],
1490-
[0x016E80, 0x016EFF],
1495+
[0x016E80, 0x016E9F],
1496+
[0x016EB9, 0x016EBA],
1497+
[0x016ED4, 0x016EFF],
14911498
[0x016F4B, 0x016F4E],
14921499
[0x016F88, 0x016F8E],
14931500
[0x016FA0, 0x016FDF],
14941501
[0x016FE4, 0x016FEF],
1495-
[0x016FF2, 0x016FFF],
1496-
[0x0187F8, 0x0187FF],
1502+
[0x016FF7, 0x016FFF],
14971503
[0x018CD6, 0x018CFE],
1498-
[0x018D09, 0x01AFEF],
1504+
[0x018D1F, 0x018D7F],
1505+
[0x018DF3, 0x01AFEF],
14991506
[0x01B123, 0x01B131],
15001507
[0x01B133, 0x01B14F],
15011508
[0x01B153, 0x01B154],
@@ -1527,7 +1534,9 @@ const nonMatchSymbols = buildString({
15271534
[0x01E2EC, 0x01E4CF],
15281535
[0x01E4EC, 0x01E5CF],
15291536
[0x01E5EE, 0x01E5EF],
1530-
[0x01E5F1, 0x01E7DF],
1537+
[0x01E5F1, 0x01E6BF],
1538+
[0x01E6F6, 0x01E6FD],
1539+
[0x01E700, 0x01E7DF],
15311540
[0x01E8C5, 0x01E8FF],
15321541
[0x01E944, 0x01E946],
15331542
[0x01E948, 0x01E94A],
@@ -1543,14 +1552,13 @@ const nonMatchSymbols = buildString({
15431552
[0x01F16A, 0x01F16F],
15441553
[0x01F18A, 0x01FFFF],
15451554
[0x02A6E0, 0x02A6FF],
1546-
[0x02B73A, 0x02B73F],
15471555
[0x02B81E, 0x02B81F],
1548-
[0x02CEA2, 0x02CEAF],
1556+
[0x02CEAE, 0x02CEAF],
15491557
[0x02EBE1, 0x02EBEF],
15501558
[0x02EE5E, 0x02F7FF],
15511559
[0x02FA1E, 0x02FFFF],
15521560
[0x03134B, 0x03134F],
1553-
[0x0323B0, 0x10FFFF]
1561+
[0x03347A, 0x10FFFF]
15541562
]
15551563
});
15561564
testPropertyEscapes(

test/built-ins/RegExp/property-escapes/generated/Any.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Mathias Bynens. All rights reserved.
1+
// Copyright 2025 Mathias Bynens. All rights reserved.
22
// This code is governed by the BSD license found in the LICENSE file.
33

44
/*---
@@ -7,7 +7,7 @@ description: >
77
Unicode property escapes for `Any`
88
info: |
99
Generated by https://github.com/mathiasbynens/unicode-property-escapes-tests
10-
Unicode v16.0.0
10+
Unicode v17.0.0
1111
esid: sec-static-semantics-unicodematchproperty-p
1212
features: [regexp-unicode-property-escapes]
1313
includes: [regExpUtils.js]

0 commit comments

Comments
 (0)