@@ -11,13 +11,13 @@ my Int:D $line-no = 0;
11
11
my @ lines ;
12
12
use Test ;
13
13
my @ failed ;
14
- my % todo = (25560 , 25873 , 25904 , 47677 , 47715 , 47760 , 47774 , 47794 , 47838 ,
15
- 51526 , 52483 , 52545 , 52565 , 52605 , 54537 , 55881 , 57453 , 57481 , 57525 , 57545 ,
16
- 57575 , 57589 , 57603 , 57643 , 57689 , 59168 , 59723 , 59743 , 59769 , 60775 , 60819 ,
17
- 60839 , 60871 , 63806 , 63868 , 64506 , 64528 , 64858 , 64920 , 65426 , 65457 , 65515 ,
18
- 66177 , 66199 , 66840 , 66858 , 66920 , 67401 , 67464 , 73347 , 73353 , 73362 , 73371 ,
19
- 73670 , 73695 , 73740 , 73808 , 99002 , 99025 , 99048 , 99052 , 99063 , 99067 , 99092 ,
20
- 99103 , 99107 , 120267 , 120321 , 120741 , 120752 , 156894 , 156899 , 156904 , 156909 ). antipairs ;
14
+ my % todo = (25947 , 26260 , 26291 , 49263 , 49301 , 49346 , 49360 , 49380 , 49424 ,
15
+ 53192 , 54149 , 54211 , 54231 , 54271 , 56203 , 57547 , 59119 , 59147 , 59191 , 59211 ,
16
+ 59241 , 59255 , 59269 , 59309 , 59355 , 60839 , 61394 , 61414 , 61440 , 62446 , 62490 ,
17
+ 62510 , 62542 , 65487 , 65549 , 66187 , 66209 , 66539 , 66601 , 67107 , 67138 , 67196 ,
18
+ 67858 , 67880 , 68521 , 68539 , 68601 , 69082 , 69145 , 75273 , 75279 , 75288 , 75297 ,
19
+ 75596 , 75621 , 75666 , 75734 , 101490 , 101513 , 101536 , 101540 , 101551 , 101555 ,
20
+ 101580 , 101591 , 101595 , 123395 , 123449 , 123869 , 123880 ). antipairs ;
21
21
sub MAIN (Bool : $ should-test = False , Bool : $ should-generate = True , Bool : $ test-only = False , Str : D : $ folder = $ default-folder ) {
22
22
my $ file = " $ folder /CollationTest_NON_IGNORABLE.txt" . IO ;
23
23
my $ last-chrs ;
@@ -28,8 +28,7 @@ sub MAIN (Bool :$should-test = False, Bool :$should-generate = True, Bool :$test
28
28
my ($ code-str , $ uninames , $ collation ) = $ line . split ([' ;' , " \t " , " #" ], : skip-empty);
29
29
my $ codes = $ code-str . split (' ' ). map (*. parse-base (16 )). list;
30
30
next if $ codes . first ({is-surrogate($ _ )});
31
- $ uninames .= trans ( Q [ \u ] => ' U+' , Q [ \U ] => ' U+' );
32
- # say $line-no;
31
+ $ uninames .= trans ( [Q [ \u ] ] => [' U+' ], [Q [ \U ] ] => [' U+' ]);
33
32
my $ chrs = $ codes . chrs;
34
33
if $ last-chrs && $ last-chrs eq $ chrs {
35
34
next ;
@@ -92,6 +91,7 @@ sub MAIN (Bool :$should-test = False, Bool :$should-generate = True, Bool :$test
92
91
' my @a = ' , " \n " , @ thing [$ _ ]. join (" \n " ), " ;\n " ,
93
92
" use Test;\n " , " plan { @ thing [$ _ ]. elems - 1 } ;\n " , $ tail , " \n " ;
94
93
}
94
+ note " \n >>> Make sure to update docs/unicode-generated-tests.asciidoc when you update the unicode version of these tests" ;
95
95
}
96
96
sub quote-it (Str : D $ str = " " ) {
97
97
" Q««" ~ $ str ~ " »»" ;
0 commit comments