1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34
|
#!/usr/bin/perl
use strict;
use warnings;
my $tests = 2;
use Test::More;
require Test::NoWarnings;
use Spreadsheet::Read;
Spreadsheet::Read::parses ("xls") or
plan skip_all => "No M\$-Excel parser found";
my $xls;
{ local *STDERR; # We want the debug activated, but not shown
open STDERR, ">", "/dev/null" or die "/dev/null: $!\n";
$xls = ReadData ("files/misc.xls",
# All defaults reversed
rc => 0,
cells => 0,
attr => 1,
clip => 1,
debug => 5,
);
}
ok ($xls, "Open with options");
is ($xls->[0]{sheets}, 3, "Sheet Count");
unless ($ENV{AUTOMATED_TESTING}) {
Test::NoWarnings::had_no_warnings ();
$tests++;
}
done_testing ($tests);
|