1 # -*-Perl-*- Test Harness script for Bioperl
9 test_begin(-tests => 8,
10 -requires_module => 'XML::Writer',
11 -requires_networking => 0,
14 use_ok('Bio::SeqIO::agave');
17 my $verbose = test_debug();
21 todo_skip "No tests for $format format -- no sample file to test against", 7, if 1;
23 my $seqio_obj = Bio::SeqIO->new(-file => test_input_file("test.$format"),
26 isa_ok($seqio_obj, 'Bio::SeqIO');
28 my @methods = qw(next_seq write_seq);
29 foreach my $method (@methods) {
30 can_ok($seqio_obj, $method) ||
31 diag "$method method not implemented for $format";
34 # checking the first sequence object
35 my $seq_obj = $seqio_obj->next_seq();
36 isa_ok($seq_obj, 'Bio::Seq');
37 my %expected = ('seq' => '' .
40 'description' => qr(),
42 is ($seq_obj->seq(), $expected{'seq'}, 'sequence');
43 is ($seq_obj->length(), $expected{'length'}, 'length');
44 is ($seq_obj->primary_id(), $expected{'primary_id'}, 'primary_id');
45 like ($seq_obj->description(), $expected{'description'}, 'description');