1 # -*-Perl-*- Test Harness script for Bioperl
10 test_begin(-tests => 4);
12 use_ok('Bio::SearchIO');
15 my $searchio = Bio::SearchIO->new(
17 -file => test_input_file('blast.report')
21 while(my $result = $searchio->next_result){
22 while(my $hit = $result->next_hit){
23 while(my $hsp = $hit->next_hsp){
29 my $first_hsp = shift @hsps;
30 my $first_hsp_cigar_string = '504M';
31 is $first_hsp->cigar_string, $first_hsp_cigar_string;
32 is $first_hsp->cigar_string, $first_hsp_cigar_string; # fetch from hash
34 my $second_hsp = $hsps[0];
35 my $second_hsp_cigar_string = '29M18I22M11I20MD33M4I22M3I25M5I21MI33MD14M';
36 is $second_hsp->cigar_string, $second_hsp_cigar_string;