Skip to content

Commit f40bd92

Browse files
committed
trying to TODO-test GH 15419
1 parent d8fc92c commit f40bd92

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

t/run/todo.t

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,20 @@ my $switches = "";
3434

3535
our $TODO;
3636

37+
TODO: {
38+
local $::TODO = 'GH 15419';
39+
my $results = fresh_perl(<<~'EOF', { stderr => 1 } );
40+
use strict;
41+
use warnings;
42+
binmode *STDOUT, ":encoding(utf8)";
43+
open(my $copy, '>&', STDOUT);
44+
print $copy "\x{11e}\n";
45+
EOF
46+
is($?, 0, "No assertion failure");
47+
is $results, "\x{11e}", "print returned the expected output";
48+
unlike $results, qr/Wide character in print/, "print did not warn about wide characters";
49+
}
50+
3751
TODO: {
3852
local $::TODO = "GH 16008";
3953
my $results = fresh_perl(<<~'EOF', {} );

0 commit comments

Comments
 (0)