Skip to content
Snippets Groups Projects
Commit d4e8ecff authored by Graham McVicker's avatar Graham McVicker
Browse files

fix broken test case

parent dbd750ea
No related branches found
No related tags found
No related merge requests found
......@@ -16,7 +16,7 @@ our $verbose = 0; #set to 1 to turn on debug printouts
BEGIN { $| = 1;
use Test;
plan tests => 6;
plan tests => 7;
}
use TestUtils qw( debug );
......@@ -28,12 +28,14 @@ my $analysis = Bio::EnsEMBL::Analysis->new(-DBID => 1,
my $start = 10;
my $end = 102;
my $density_value = 123;
my $density_value_type = 'ratio';
my $df = Bio::EnsEMBL::DensityFeature->new
(-start => $start,
-end => $end,
-analysis => $analysis,
-density_value => $density_value);
-density_value => $density_value,
-density_value_type => $density_value_type);
ok($df->start == $start && $df->analysis == $analysis && $df->end == $end);
ok($df->strand == 0);
......@@ -44,11 +46,12 @@ $df = Bio::EnsEMBL::DensityFeature->new_fast
({'start' => $start,
'end' => $end,
'analysis' => $analysis,
'density_value' => $density_value});
'density_value' => $density_value,
'density_value_type' => $density_value_type});
ok($df->start == $start && $df->analysis == $analysis && $df->end == $end);
ok($df->strand == 0);
ok($df->density_value == $density_value);
ok($df->density_value_type eq $density_value_type);
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment