Bio::SeqIO::agave: move to its own distribution
[bioperl-live.git] / t / SeqIO / tab.t
blobe2eee57bac2d9d3492d01fdebc28c339a4d74318
1 # -*-Perl-*- Test Harness script for Bioperl
2 # $Id$
4 use strict;
6 BEGIN {
7     use Bio::Root::Test;
8     
9     test_begin(-tests => 8);
10         
11         use_ok('Bio::SeqIO::tab');
14 my $verbose = test_debug();
16 my $io = Bio::SeqIO->new(-format => 'tab',
17                                                                  -verbose => $verbose,
18                                                                  -file => test_input_file('test.tab'));
19 isa_ok($io, 'Bio::SeqIO');
21 while (my $seq = $io->next_seq) {
22         ok ( $seq && defined $seq, 'seq is defined' ) ;
23         is ( $seq->length, 358, 'check seq length'  ) ;
24         like ($seq->display_id, qr/^roa\d_drome$/, 'check matching' );