File: 02.empty-string.t

package info (click to toggle)
libtext-autoformat-perl 1.750000-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 200 kB
  • sloc: perl: 745; makefile: 7
file content (14 lines) | stat: -rw-r--r-- 318 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#! perl

use strict;
use warnings;
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");