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

use Spreadsheet::ParseXLSX;

my $wb = Spreadsheet::ParseXLSX->new->parse('t/data/tab-color.xlsx');
my $ws1 = $wb->worksheet(0);
is($ws1->get_tab_color, '#FF0000');

my $ws2 = $wb->worksheet(1);
is($ws2->get_tab_color, undef);

done_testing;