Skip to content
Snippets Groups Projects
Commit 93cb056d authored by Arne Stabenau's avatar Arne Stabenau
Browse files

test overlaps with just seqname features

parent 6d5d994d
No related branches found
No related tags found
No related merge requests found
......@@ -5,7 +5,7 @@ use lib 't';
BEGIN { $| = 1;
use Test;
plan tests => 93;
plan tests => 94;
}
use TestUtils qw( debug test_getter_setter );
......@@ -469,7 +469,7 @@ my $f2 = new Bio::EnsEMBL::Feature( -start => 10,
# simple same coord system overlap
#
debug( "f1<->f2 overlap = ".($f1->overlaps( $f2 )));
ok( $f1->overlaps( $f2 ));
$f2 = new Bio::EnsEMBL::Feature( -start => 11,
......@@ -492,4 +492,25 @@ $f2 = new Bio::EnsEMBL::Feature( -start => 1,
-analysis => $analysis
);
debug( "Other coord overlaps ".( $f1->overlaps( $f2 )));
ok( $f1->overlaps( $f2 ));
#
# Just seqname features
#
$f1->seqname( "minigenewise" );
$f1->slice( undef );
$f2 = new Bio::EnsEMBL::Feature( -start => 10,
-end => 20,
-strand => -1,
-seqname => "minigenewise",
-analysis => $analysis
);
debug( "seqname f1<->f2 overlap = ".($f1->overlaps( $f2 )));
ok( ($f1->overlaps( $f2 )));
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