summaryrefslogtreecommitdiffstats
path: root/t/bug-32.t
blob: 57346f7ac922341716ab4091c9a5bea9a46a98d6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/usr/bin/env perl
use strict;
use warnings;
use Test::More;

use Spreadsheet::ParseXLSX;

{
    my $wb = Spreadsheet::ParseXLSX->new->parse('t/data/bug-32.xlsx');

    my $ws1 = $wb->worksheet(0);
    like($ws1->get_cell(0, 0)->value, qr/^PURSUANT/);

    my $ws2 = $wb->worksheet(1);
    like($ws2->get_cell(0, 0)->value, qr/^QMS/);
}

{
    my $wb = Spreadsheet::ParseXLSX->new->parse('t/data/bug-32-2.xlsx');

    my $ws = $wb->worksheet(0);
    is($ws->get_cell(1, 1)->value, 93);
}

done_testing;