Allow falling back to any strigified Bio::AnnotationI for 'gene_name'
[bioperl-live.git] / t / SeqIO / pir.t
blobb7bfded5063e5e266b06f20026c56a447fefaaf7
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 => 9);
11         
12         use_ok('Bio::SeqIO::pir');
15 my $verbose = test_debug();
17 my $str = Bio::SeqIO->new(-file => test_input_file('seqfile.pir'),
18                                                                   -verbose => $verbose,
19                                                                   -format => 'pir');
21 ok ( defined $str, 'new instance is defined ');
22 isa_ok ($str, 'Bio::SeqIO');
24 my $out = Bio::SeqIO->new(-format => 'pir',
25                                                                  -fh => \*STDOUT);
27 while (my $seq = $str->next_seq()) {
28         ok( $seq->length > 1, 'checked length');
29         $out->write_seq($seq) if $verbose > 0;