Skip to content
Snippets Groups Projects
Commit 5cdae5b7 authored by Ian Holmes's avatar Ian Holmes
Browse files

blah

parent f1015db5
No related branches found
No related tags found
No related merge requests found
......@@ -68,7 +68,7 @@ test_transform ($mapper,
sub test_transform {
my ($mapper, $src, @dest) = @_;
if (@$src != 5) { warn "Bad source coords: (@$src)\n"; printnotprintok(); return }
if (@$src != 5) { warn "Bad source coords: (@$src)\n"; printnotok(); return }
my ($srcid, $srcstart, $srcend, $srcstrand, $srctype) = @$src;
my @coord = $mapper->map_coordinates ($srcid, $srcstart, $srcend, $srcstrand, $srctype);
@coord = map ([isgap($_) ? $srcid : $_->id, # Gap object should do this, but currently doesn't.
......@@ -81,7 +81,7 @@ sub test_transform {
warn "Dest:\n", map ("(".join(",",@$_).")\n", @coord);
warn "Expected:\n", map ("(".join(",",@$_).")\n", @dest);
warn "Wrong number of segments\n";
printnotprintok();
printnotok();
return;
}
printok();
......@@ -94,7 +94,7 @@ sub test_transform {
warn "Dest:\n", map ("(".join(",",@$_).")\n", @coord);
warn "Expected:\n", map ("(".join(",",@$_).")\n", @dest);
warn "Error in segment ", $i+1, " field ", $n+1, "\n";
printnotprintok();
printnotok();
return;
}
}
......@@ -239,5 +239,5 @@ sub isgap { my ($obj) = @_; return !$obj->can ('strand') }
# ok & notok subroutines
sub printok { print "ok ", ++$n_test, "\n" }
sub printnotprintok { print "not ok ", ++$n_test, "\n" }
sub printnotok { print "not ok ", ++$n_test, "\n" }
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