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

« back to all changes in this revision

Viewing changes to t/tab.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-*-
2
 
# $Id: tab.t,v 1.1 2005/09/07 01:36:37 bosborne Exp $
3
 
# Before `make install' is performed this script should be runnable with
4
 
# `make test'. After `make install' it should work as `perl test.t'
5
 
 
6
 
use strict;
7
 
use vars qw($NUMTESTS);
8
 
BEGIN {
9
 
        $NUMTESTS = 7;
10
 
        # to handle systems with no installed Test module
11
 
        # we include the t dir (where a copy of Test.pm is located)
12
 
        # as a fallback
13
 
        eval { require Test; };
14
 
        if ( $@ ) {
15
 
                use lib 't';
16
 
        }
17
 
        use Test;
18
 
        plan tests => $NUMTESTS;
19
 
}
20
 
 
21
 
use Bio::SeqIO;
22
 
use Bio::Root::IO;
23
 
 
24
 
my $verbose = $ENV{'BIOPERLDEBUG'};
25
 
ok(1);
26
 
 
27
 
my $io = Bio::SeqIO->new(-format => 'tab',
28
 
                                                                 -verbose => $verbose,
29
 
                                                                 -file => Bio::Root::IO->catfile
30
 
                                                                 (qw(t data test.tab) ));
31
 
 
32
 
while (my $seq = $io->next_seq) {
33
 
        ok defined $seq;
34
 
        ok($seq->length, 358);
35
 
        ok($seq->display_id =~ /^roa\d_drome$/);
36
 
}