-
Notifications
You must be signed in to change notification settings - Fork 245
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix toFile call that prevents IntervalListWriter from writing to Paths (
- Loading branch information
1 parent
37b2e87
commit b1cb410
Showing
7 changed files
with
99 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package htsjdk.samtools.util; | ||
|
||
import htsjdk.HtsjdkTest; | ||
import htsjdk.tribble.annotation.Strand; | ||
import org.testng.Assert; | ||
import org.testng.annotations.DataProvider; | ||
import org.testng.annotations.Test; | ||
|
||
public class IntervalTest extends HtsjdkTest { | ||
@DataProvider | ||
public Object[][] booleanProvider(){ | ||
return new Object[][]{{true}, {false}}; | ||
} | ||
|
||
@Test(dataProvider = "booleanProvider") | ||
public void testGetStrand(boolean isNegativeStrand){ | ||
final Interval interval = new Interval("chr1", 1, 100, isNegativeStrand, "name"); | ||
Assert.assertEquals(isNegativeStrand, interval.isNegativeStrand()); | ||
Assert.assertNotEquals(isNegativeStrand, interval.isPositiveStrand()); | ||
Assert.assertEquals(isNegativeStrand, interval.getStrand() == Strand.NEGATIVE); | ||
} | ||
} |