Skip to content

Commit

Permalink
Demonstrate errors reported in issue #27.
Browse files Browse the repository at this point in the history
  • Loading branch information
heuermh committed Oct 24, 2018
1 parent 3b60e8b commit 76605ca
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/java/org/disq_bio/disq/HtsjdkReadsRddTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,9 @@ public void testReadAndWrite(

HtsjdkReadsRdd htsjdkReadsRdd = htsjdkReadsRddStorage.read(inputPath);

// reduce to realize the RDD of reads
Assert.assertNotNull(htsjdkReadsRdd.getReads().first());

// read the file using htsjdk to get expected number of reads, then count the number in the RDD
int expectedCount = AnySamTestUtil.countReads(inputPath, refPath);
Assert.assertEquals(expectedCount, htsjdkReadsRdd.getReads().count());
Expand Down
3 changes: 3 additions & 0 deletions src/test/java/org/disq_bio/disq/HtsjdkVariantsRddTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,9 @@ public void testReadAndWrite(

HtsjdkVariantsRdd htsjdkVariantsRdd = htsjdkVariantsRddStorage.read(inputPath);

// reduce to realize the RDD of variants
Assert.assertNotNull(htsjdkVariantsRdd.getVariants().first());

// read the file using htsjdk to get expected number of reads, then count the number in the RDD
int expectedCount = countVariants(inputPath);
Assert.assertEquals(expectedCount, htsjdkVariantsRdd.getVariants().count());
Expand Down

0 comments on commit 76605ca

Please sign in to comment.