X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FAutoSplit.t;h=36d33681d56b6cf6a44bafea7e4e950d28953d4f;hb=031444c208a641407a9c485b4619db54f43e6b7f;hp=f767a003644b4f6179b9b07b74e0174a0b992c01;hpb=f687c58382f4b95feb695ed73228b771780e828e;p=p5sagit%2Fp5-mst-13.2.git diff --git a/lib/AutoSplit.t b/lib/AutoSplit.t index f767a00..36d3368 100644 --- a/lib/AutoSplit.t +++ b/lib/AutoSplit.t @@ -99,6 +99,8 @@ foreach (@tests) { foreach ($args{Name}, $args{Require}, $args{Extra}) { chomp $_ if defined $_; } + $args{Get} ||= ''; + my @extra_args = !defined $args{Extra} ? () : split /,/, $args{Extra}; my ($output, $body); if ($args{File}) { @@ -120,7 +122,7 @@ foreach (@tests) { } # test n+1 - cmp_ok ($output, 'eq', $args{Get}, "Output from autosplit()ing $args{Name}"); + is($output, $args{Get}, "Output from autosplit()ing $args{Name}"); if ($args{Files}) { $args{Files} =~ s!/!:!gs if $^O eq 'MacOS';