1 # -*-Perl-*- Test Harness script for Bioperl
10 test_begin(-tests => 19);
12 use_ok('Bio::SearchIO');
15 # only methods defined in Bio::SearchIO should be tested here; all
16 # parsers should have their own separate SearchIO_*.t test file
18 # Let's test if _guess_format is doing its job correctly
19 my %pair = ( 'filename.blast' => 'blast',
20 'filename.bls' => 'blast',
23 'fast.bls' => 'blast',
28 'f.ssearch' => 'fasta',
29 'f.SSEARCH.m9' => 'fasta',
31 'f.psearch' => 'fasta',
32 'f.osearch' => 'fasta',
33 'f.exon' => 'exonerate',
34 'f.exonerate' => 'exonerate',
35 'f.blastxml' => 'blastxml',
36 'f.xml' => 'blastxml');
37 while( my ($file,$expformat) = each %pair ) {
38 is(Bio::SearchIO->_guess_format($file),$expformat, "$expformat for $file");