Allow falling back to any strigified Bio::AnnotationI for 'gene_name'
[bioperl-live.git] / t / SeqIO / MultiFile.t
blobd6b3040ab8aa83eeb282f448aaa1892475be01af
1 # -*-Perl-*- Test Harness script for Bioperl
2 # $Id$
4 use strict;
6 BEGIN {
7         use lib '.';
8     use Bio::Root::Test;
9     
10     test_begin(-tests => 3);
11                 
12         use_ok('Bio::SeqIO::MultiFile');
15 my $verbose = test_debug();
17 my $mf = Bio::SeqIO::MultiFile->new(-format => 'Fasta' ,
18                                                                                                 -verbose => $verbose,
19                                                                                                 -files =>
20                                                                                                 [ test_input_file('multi_1.fa'),
21                                                                                                   test_input_file('multi_2.fa')]);
22 ok defined $mf;
23 my $count = 0;
24 eval {
25         while (my $seq = $mf->next_seq() ) {
26                 $count++;
27         }
29 is( $count,12 );