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

« back to all changes in this revision

Viewing changes to t/Tools/Promoterwise.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: Promoterwise.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 => 7);
 
11
        
 
12
    use_ok('Bio::Tools::Promoterwise');
 
13
}
 
14
 
 
15
my $file = test_input_file('promoterwise.out');
 
16
my $parser = Bio::Tools::Promoterwise->new(-file=>$file);
 
17
isa_ok $parser,'Bio::Tools::Promoterwise';
 
18
my @fp;
 
19
while (my $fp = $parser->next_result){
 
20
  push @fp,$fp;
 
21
}
 
22
my $first = $fp[0]->feature1;
 
23
my $second = $fp[0]->feature2;
 
24
 
 
25
my @sub = $first->sub_SeqFeature;
 
26
my @sub2 = $second->sub_SeqFeature;
 
27
 
 
28
is $sub[0]->start,4;
 
29
is $sub2[0]->start,29;
 
30
is $sub[0]->end,18;
 
31
is $sub2[0]->end,43;
 
32
is $sub[0]->score,1596.49