Bug 18959: Skip xt/author/Text_CSV_Various.t if Text::CSV::Unicode missing

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Tomas Cohen Arazi 2018-10-13 09:17:00 -03:00 committed by Nick Clemens
parent eb3f78f82e
commit ca9a1b76d8
1 changed files with 14 additions and 6 deletions

View File

@ -22,16 +22,24 @@
use Modern::Perl;
use Test::More tests => 32;
use Test::More;
use Test::Warn;
use Text::CSV;
use Text::CSV_XS;
use Module::Load::Conditional qw/check_install/;
BEGIN {
use FindBin;
use lib $FindBin::Bin;
use_ok('Text::CSV');
use_ok('Text::CSV_XS');
use_ok('Text::CSV::Unicode');
if ( check_install( module => 'Text::CSV::Unicode' ) ) {
plan tests => 29;
} else {
plan skip_all => "Need Text::CSV::Unicode"
}
}
use Text::CSV::Unicode;
sub pretty_line {
my $max = 54;
(@_) or return "#" x $max . "\n";