1 # -*-Perl-*- Test Harness script for Bioperl
9 test_begin(-tests => 15,
10 -requires_modules => [qw(XML::SAX
17 my $verbose = test_debug();
19 my $str = Bio::SeqIO->new(-format => 'bsml_sax',
21 -file => test_input_file('U83300.bsml'));
22 my $seq = $str->next_seq;
23 isa_ok($seq, 'Bio::Seq::RichSeqI');
24 my @refs = $seq->annotation->get_Annotations('reference');
26 is($seq->display_id,'MIVN83300');
27 is($seq->molecule ,'dna');
28 ok(! $seq->is_circular);
29 is($seq->get_dates,2);
30 is($seq->accession_number, 'U83300');
31 is($seq->seq_version,1);
32 my @feats = $seq->get_SeqFeatures;
34 is($feats[1]->start, 1);
35 is($feats[1]->end, 946);
36 is($feats[1]->get_tag_values('db_xref'), 3);
37 is($seq->annotation->get_Annotations('reference'),2);
38 is($seq->annotation->get_Annotations('dblink'),2);