~ubuntu-branches/ubuntu/saucy/bioperl/saucy-proposed

« back to all changes in this revision

Viewing changes to t/Tools/EMBOSS/Palindrome.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: Palindrome.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 => 13);
 
11
        
 
12
        use_ok('Bio::Tools::EMBOSS::Palindrome');
 
13
        use_ok('Bio::Tools::GFF');
 
14
}
 
15
 
 
16
my $DEBUG = test_debug();
 
17
 
 
18
my $parser = Bio::Tools::EMBOSS::Palindrome->new(-file => test_input_file('humts1.pal'));
 
19
 
 
20
my $seq = $parser->next_seq;
 
21
ok($seq);
 
22
is($seq->display_id, 'HUMTS1');
 
23
is($seq->length, 18596);
 
24
my @features = $seq->get_SeqFeatures();
 
25
is(scalar @features, 23);
 
26
 
 
27
is($features[0]->feature1->start, 126);
 
28
is($features[0]->feature1->end, 142);
 
29
is($features[0]->feature1->strand, 1);
 
30
is($features[0]->feature1->seq_id, 'HUMTS1');
 
31
 
 
32
 
 
33
is($features[0]->feature2->start, 201);
 
34
is($features[0]->feature2->end, 217);
 
35
is($features[0]->feature2->strand, -1);
 
36
 
 
37
if( $DEBUG ) {
 
38
    my $out = Bio::Tools::GFF->new(-gff_version => 2);
 
39
    $out->write_feature($features[0]);
 
40
}