~ubuntu-branches/ubuntu/trusty/bioperl/trusty-proposed

« back to all changes in this revision

Viewing changes to t/SeqIO/fastq.t

  • Committer: Bazaar Package Importer
  • Author(s): Charles Plessy
  • Date: 2009-03-10 07:19:11 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20090310071911-fukqzw54pyb1f0bd
Tags: 1.6.0-2
* Removed patch system (not used):
  - removed instuctions in debian/rules;
  - removed quilt from Build-Depends in debian/control.
* Re-enabled tests:
  - uncommented test command in debian/rules;
  - uncommented previously missing build-dependencies in debian/control.
  - Re-enabled tests and uncommented build-dependencies accordingly.
* Removed libmodule-build-perl and libtest-harness-perl from
  Build-Depends-Indep (provided by perl-modules).
* Better cleaning of empty directories using find -type d -empty -delete
  instead of rmdir in debian/rules (LP: #324001).

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# -*-Perl-*- Test Harness script for Bioperl
 
2
# $Id: fastq.t 15112 2008-12-08 18:12:38Z sendu $
 
3
 
 
4
use strict;
 
5
 
 
6
BEGIN {
 
7
    use lib '.';
 
8
    use Bio::Root::Test;
 
9
    
 
10
    test_begin(-tests => 5);
 
11
        
 
12
        use_ok('Bio::SeqIO::fastq');
 
13
}
 
14
 
 
15
my $DEBUG = test_debug();
 
16
 
 
17
# bug 2335
 
18
my $in_qual  = Bio::SeqIO->new('-file' => test_input_file('bug2335.fastq'),
 
19
                                                           '-format' => 'fastq',
 
20
                                                          );
 
21
isa_ok($in_qual, 'Bio::SeqIO');
 
22
 
 
23
my $qual = $in_qual->next_seq();
 
24
isa_ok($qual, 'Bio::Seq::Quality');
 
25
 
 
26
my @quals = @{$qual->qual()};
 
27
 
 
28
is(@quals, 111, 'number of qual values');
 
29
 
 
30
my $qualslice = join(',',@quals[0..10]);
 
31
is($qualslice, '31,23,32,23,31,22,27,28,32,24,25', 'qual slice');