2 ## Quick test for fix_overlay
7 use Test
::More tests
=> 3;
9 use DataExtract
::FixedWidth
;
11 my $file = File
::Spec
->catfile( 't', 'data', 'Fix-Overlay.txt' );
12 open ( my $fh, $file ) || die "Can not open $file";
14 while ( my $line = <$fh> ) {
18 $fw = DataExtract
::FixedWidth
->new({
24 my $arrRef = $fw->parse( $line );
25 my $hashRef = $fw->parse_hash( $line );
29 ok
( $hashRef->{id
} eq 1, "Testing output (->parse_hash)" );
30 ok
( $hashRef->{name
} eq 'Amy is foobared', "Testing output (->parse_hash)" );
31 ok
( $hashRef->{team
} eq 'She likes the bulls.', "Testing output (->parse_hash)" );