Skip to content

Commit 783fcef

Browse files
committed
Test was failing if the location was at 1 and negative strand because internally stored as 0 and you can't have negative 0
git-svn-id: http://code.open-bio.org/repos/biojava/biojava-live/trunk@8652 7c6358e6-4a41-0410-a743-a5b2a554c398
1 parent c1a43cd commit 783fcef

File tree

1 file changed

+1
-1
lines changed
  • biojava3-genome/src/main/java/org/biojava3/genome/parsers/gff

1 file changed

+1
-1
lines changed

biojava3-genome/src/main/java/org/biojava3/genome/parsers/gff/Location.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -786,7 +786,7 @@ public boolean isBefore( Location other )
786786
*/
787787
public boolean isNegative()
788788
{
789-
return ( mStart < 0 && mEnd < 0 );
789+
return ( mStart <= 0 && mEnd <= 0 );
790790
}
791791

792792
/**

0 commit comments

Comments
 (0)