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

added test for the consistancy of display_id of Bio::Seq returned by Exon::seq

parent 864b9d5c
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@ use strict;
BEGIN { $| = 1;
use Test ;
plan tests => 22;
plan tests => 24;
}
my $loaded = 0;
......@@ -167,3 +167,14 @@ ok($hashkey eq $exon->slice->name . '-' . $exon->start . '-' .
$multi->restore();
# regression test
# make sure that sequence fetching and caching is not broken
$exon->stable_id('TestID');
my $first_seq = $exon->seq();
my $second_seq = $exon->seq();
ok($first_seq->seq() && $first_seq->seq() eq $second_seq->seq());
ok($first_seq->display_id() && $first_seq->display_id() eq $second_seq->display_id());
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