summaryrefslogtreecommitdiffstats
path: root/t/hidden-row-and-column.t
blob: cd18c70923c3dd2d8325f1257586109f5956fd83 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;

use Spreadsheet::ParseXLSX;

my $wb = Spreadsheet::ParseXLSX->new->parse('t/data/hidden-row-and-column.xlsx');
my $ws = $wb->worksheet(0);

ok(!$ws->is_row_hidden(0), 'Regular row is not hidden');
ok( $ws->is_row_hidden(1), 'Hidden row is hidden');

ok(!$ws->is_col_hidden(0), 'Regular column is not hidden');
ok( $ws->is_col_hidden(1), 'Hidden column is hidden');

done_testing;