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

« back to all changes in this revision

Viewing changes to t/RandDistFunctions.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
 
## Bioperl Test Harness Script for Modules
3
 
##
4
 
 
5
 
my $error;
6
 
use strict;
7
 
BEGIN { 
8
 
    # to handle systems with no installed Test module
9
 
    # we include the t dir (where a copy of Test.pm is located)
10
 
    # as a fallback
11
 
    $error = 0; 
12
 
    eval { require Test; };
13
 
    if( $@ ) {
14
 
        use lib 't';
15
 
    }
16
 
    use Test;
17
 
    plan tests => 4;
18
 
}
19
 
 
20
 
use Bio::Tools::RandomDistFunctions;
21
 
 
22
 
my $dist = Bio::Tools::RandomDistFunctions->new;
23
 
ok(1);
24
 
 
25
 
ok($dist->rand_exponentional_distribution(1.0));
26
 
ok($dist->rand_geometric_distribution(0.9));
27
 
ok($dist->rand_normal_distribution);