summaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorSteve Simms <steve@deefs.net>2015-10-29 16:05:14 -0400
committerSteve Simms <steve@deefs.net>2015-10-29 16:05:14 -0400
commit48c05714c254df089e170c014661db9a4bc7d21d (patch)
treea4ee1bf77eda3ccfaed263b87770d920e3984c11 /t
parent18d2af2335741cdf59cb0725669f7aa7a7fad98b (diff)
downloadspreadsheet-parsexlsx-48c05714c254df089e170c014661db9a4bc7d21d.tar.gz
spreadsheet-parsexlsx-48c05714c254df089e170c014661db9a4bc7d21d.zip
Check to see if rows and columns are hidden
Diffstat (limited to 't')
-rw-r--r--t/data/hidden-row-and-column.xlsxbin0 -> 7467 bytes
-rw-r--r--t/hidden-row-and-column.t17
2 files changed, 17 insertions, 0 deletions
diff --git a/t/data/hidden-row-and-column.xlsx b/t/data/hidden-row-and-column.xlsx
new file mode 100644
index 0000000..4d4bac4
--- /dev/null
+++ b/t/data/hidden-row-and-column.xlsx
Binary files differ
diff --git a/t/hidden-row-and-column.t b/t/hidden-row-and-column.t
new file mode 100644
index 0000000..cd18c70
--- /dev/null
+++ b/t/hidden-row-and-column.t
@@ -0,0 +1,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;