diff options
author | FL <f20@reckon.co.uk> | 2015-02-07 18:06:48 +0000 |
---|---|---|
committer | FL <f20@reckon.co.uk> | 2015-02-07 18:12:00 +0000 |
commit | ebc1b28cdd918dd3f3548e6553564d8600c9b178 (patch) | |
tree | c1f56231bcde38f277a2f5a6388988562726abd3 /t/bug-16.t | |
parent | c48aba2416230ad6f9fa792a256e2983ce863b98 (diff) | |
download | spreadsheet-parsexlsx-ebc1b28cdd918dd3f3548e6553564d8600c9b178.tar.gz spreadsheet-parsexlsx-ebc1b28cdd918dd3f3548e6553564d8600c9b178.zip |
Rename "bug-lock" to "bug-16" in keeping with the general naming convention for tests.
Diffstat (limited to 't/bug-16.t')
-rw-r--r-- | t/bug-16.t | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/t/bug-16.t b/t/bug-16.t new file mode 100644 index 0000000..8ee9b6d --- /dev/null +++ b/t/bug-16.t @@ -0,0 +1,26 @@ +#!/usr/bin/env perl +use strict; +use warnings; +use Test::More; + +use Spreadsheet::ParseXLSX; + +my $wb = Spreadsheet::ParseXLSX->new->parse('t/data/bug-16.xlsx'); +my $ws = $wb->worksheet(0); + +my $b1 = $ws->get_cell(0, 0); +ok($b1->get_format->{Lock}); + +my $b2 = $ws->get_cell(1, 0); +ok(!$b2->get_format->{Lock}); + +my $b3 = $ws->get_cell(2, 0); +ok($b3->get_format->{Lock}); + +my $b4 = $ws->get_cell(3, 0); +ok(!$b4->get_format->{Lock}); + +my $b5 = $ws->get_cell(4, 0); +ok($b5->get_format->{Lock}); + +done_testing; |