The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

#! perl
use strict;
use Text::Autoformat qw/ autoformat /;
use Test::More 0.88 tests => 1;
my $input = '';
my $expected_output = '';
my $output = autoformat($input);
ok(defined($output) && $output eq $expected_output,
"Empty string input should result in empty string output");