1 # -*-Perl-*- Test Harness script for Bioperl
10 test_begin(-tests => 45);
12 use_ok('Bio::SearchIO');
15 my ($searchio, $result,$hit,$hsp);
17 $searchio = Bio::SearchIO->new(-file => test_input_file('testdat.exonerate'),
18 -format => 'exonerate');
19 my @data = ( [qw(ln27 416 Contig124 939
29 [qw(ln74 644 Contig275 1296
44 while( my $r = $searchio->next_result ) {
46 is($r->query_name, shift @$d);
49 skip('no query length available in default output',1);
50 is($r->query_length, $val);
54 is($h->name, shift @$d);
57 skip( 'no hit length available in default output',1);
60 while( my $hsp = $h->next_hsp ) {
61 is($hsp->query->start, shift @$d);
62 is($hsp->query->end, shift @$d);
63 is($hsp->query->strand, shift @$d);
65 is($hsp->hit->start, shift @$d);
66 is($hsp->hit->end, shift @$d);
67 is($hsp->hit->strand, shift @$d);