We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b554fd commit 34d9693Copy full SHA for 34d9693
t/op/tr.t
@@ -14,7 +14,7 @@ BEGIN {
14
use utf8;
15
require Config;
16
17
-plan tests => 317;
+plan tests => 318;
18
19
# Test this first before we extend the stack with other operations.
20
# This caused an asan failure due to a bad write past the end of the stack.
@@ -1211,4 +1211,14 @@ for ("", nullrocow) {
1211
is $c, 1, "Count for the above test";
1212
}
1213
1214
+{ # As of August 2024, the code to handle this situation is not otherwise
1215
+ # exercised by the test suite
1216
+
1217
+ my $A = "A";
1218
+ utf8::upgrade($A);
1219
1220
+ $A =~ tr/A/\xB6/; # B6 works in both ASCII and EBCDIC
1221
+ is($A, "\xB6", "UTF-8 invariant in a UTF-8 string to UTF-8 variant");
1222
+}
1223
1224
1;
0 commit comments