tag fourth (and hopefully last) alpha
[bioperl-live.git] / branch-1-6 / t / SeqIO / tab.t
blob526487b6e2906f250880ed4132f10e4e2543613b
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 => 8);
11         
12         use_ok('Bio::SeqIO::tab');
15 my $verbose = test_debug();
17 my $io = Bio::SeqIO->new(-format => 'tab',
18                                                                  -verbose => $verbose,
19                                                                  -file => test_input_file('test.tab'));
20 isa_ok($io, 'Bio::SeqIO');
22 while (my $seq = $io->next_seq) {
23         ok ( $seq && defined $seq, 'seq is defined' ) ;
24         is ( $seq->length, 358, 'check seq length'  ) ;
25         like ($seq->display_id, qr/^roa\d_drome$/, 'check matching' );