Add tests for memory leaks and weaken for Issue #81
[bioperl-live.git] / t / SeqIO / MultiFile.t
blob1c8f4cb7b9f9ed6bf957f7f650bfae0605116375
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 => 5);
12     use_ok 'Bio::SeqIO::MultiFile';
15 my $verbose = test_debug();
18 # Test multiple files, with a specified format
19 ok my $mf = Bio::SeqIO::MultiFile->new(
20     -format  => 'Fasta' ,
21     -verbose => $verbose,
22     -files   => [ test_input_file('multi_1.fa'), test_input_file('multi_2.fa')],
25 my $count = 0;
26 while (my $seq = $mf->next_seq() ) {
27     $count++;
29 is $count, 12;
32 # Automatically determine format
33 ok $mf = Bio::SeqIO::MultiFile->new(
34     -verbose => $verbose,
35     -files   => [ test_input_file('multi_1.fa'), test_input_file('multi_2.fa')],
38 is $mf->format, 'fasta';