1 # -*-Perl-*- Test Harness script for Bioperl
9 test_begin(-tests => 18);
12 use_ok('Bio::Seq::PrimaryQual');
15 my $DEBUG = test_debug();
17 my $in_qual = Bio::SeqIO->new('-file' => test_input_file('qualfile.qual'),
24 while ( my $qual = $in_qual->next_seq() ) {
26 isa_ok($qual, 'Bio::Seq::PrimaryQual');
27 @quals = @{$qual->qual()};
29 warn($qual->id()."\n");
31 warn("(".scalar(@quals).") quality values.\n");
39 # in October 2004, Carlos Mauricio La Rota posted a problem with descriptions
40 # this routine is to test that
43 # this one has a forced header
44 my $seq = Bio::Seq::PrimaryQual->new(
46 -header => "Hank is a good cat. I gave him a bath yesterday.");
47 my $out = Bio::SeqIO->new(-file => ">".test_output_file(),
50 is $seq->header, 'Hank is a good cat. I gave him a bath yesterday.';
51 @quals = @{$seq->qual()};
52 is scalar(@quals), 11;
53 ok $out->write_seq($seq);
59 ok $out->write_seq($seq);