diff options
author | Jesse Luehrs <doy@tozt.net> | 2013-11-06 10:58:48 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2013-11-06 11:03:00 -0500 |
commit | 59667433810abb7406139bc858edfc793036a269 (patch) | |
tree | b80f1af282edb59e73bcbcf55f6a1a1e472fd450 /t | |
parent | ec0983d61ddd729e62577102fd6af05d833b366a (diff) | |
download | spreadsheet-parsexlsx-59667433810abb7406139bc858edfc793036a269.tar.gz spreadsheet-parsexlsx-59667433810abb7406139bc858edfc793036a269.zip |
implement the inlineStr cell type
Diffstat (limited to 't')
-rw-r--r-- | t/bug-12.t | 24 | ||||
-rw-r--r-- | t/data/bug-12.xlsx | bin | 0 -> 4970 bytes |
2 files changed, 24 insertions, 0 deletions
diff --git a/t/bug-12.t b/t/bug-12.t new file mode 100644 index 0000000..0af7a6a --- /dev/null +++ b/t/bug-12.t @@ -0,0 +1,24 @@ +#!/usr/bin/env perl +use strict; +use warnings; +use Test::More; + +use Spreadsheet::ParseXLSX; + +my $wb = Spreadsheet::ParseXLSX->new->parse('t/data/bug-12.xlsx'); +is($wb->worksheet_count, 1); + +my $ws = $wb->worksheet(0); +my ($rmin, $rmax) = $ws->row_range; +my ($cmin, $cmax) = $ws->col_range; +is($rmin, 0); +is($rmax, 0); +is($cmin, 0); +is($cmax, 3); + +is($ws->get_cell(0, 0)->value, 7); +is($ws->get_cell(0, 1)->value, 3); +is($ws->get_cell(0, 2)->value, 30); +is($ws->get_cell(0, 3)->value, 'Kuku'); + +done_testing; diff --git a/t/data/bug-12.xlsx b/t/data/bug-12.xlsx Binary files differnew file mode 100644 index 0000000..a92a544 --- /dev/null +++ b/t/data/bug-12.xlsx |