Skip to content

Commit 9fcd5e2

Browse files
committed
Test fullwidth characters in radix op
1 parent 85c5d83 commit 9fcd5e2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

t/nqp/081-radix.t

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
plan(24*3*2 + 3);
1+
plan(26*3*2 + 3);
22

33
sub test_radix($radix,$str,$pos,$flags,$value,$mult,$offset,$desc) {
44
my $result := nqp::radix($radix,$str,$pos,$flags);
@@ -58,3 +58,9 @@ test_radix_both(3,"۳",0,2, 0,1,-1, "no digits consumed with unicode digit outsi
5858
test_radix_both(10,"۳",0,2, 3,10,1, "extended arabic-indic digit three");
5959
test_radix_both(10,"۳۳",0,2, 33,100,2, "extended arabic-indic digit three");
6060

61+
my $full_width_capital := "\c[FULLWIDTH LATIN CAPITAL LETTER C]\c[FULLWIDTH LATIN CAPITAL LETTER A]\c[FULLWIDTH LATIN CAPITAL LETTER F]\c[FULLWIDTH LATIN CAPITAL LETTER E]";
62+
63+
my $full_width_small := "\c[FULLWIDTH LATIN SMALL LETTER C]\c[FULLWIDTH LATIN SMALL LETTER A]\c[FULLWIDTH LATIN SMALL LETTER F]\c[FULLWIDTH LATIN SMALL LETTER E]";
64+
65+
test_radix_both(16,$full_width_capital,0,2, 51966,65536,4, "fullwidth capital letters");
66+
test_radix_both(16,$full_width_small,0,2, 51966,65536,4, "fullwidth small letters");

0 commit comments

Comments
 (0)