Skip to content

Commit

Permalink
Adapted test for fixed Rebinner
Browse files Browse the repository at this point in the history
  • Loading branch information
Johannes Griss committed Oct 17, 2018
1 parent dfad521 commit 25fa991
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,7 @@ public void testRebinning() throws Exception {
Assert.assertEquals(2, rebinned.size());
// next file always has to start 1 precursor tolerance lower
Assert.assertTrue(references.get(0).getMaxMz() - 2.0 >= rebinned.get(0).getMaxMz());
Assert.assertTrue(references.get(1).getMaxMz() - 2.0 >= rebinned.get(1).getMaxMz());
Assert.assertTrue(references.get(1).getMaxMz() - 2.0 <= rebinned.get(2).getMinMz());
Assert.assertTrue(references.get(0).getMaxMz() - 2.0 <= rebinned.get(1).getMinMz());

// make sure the number of spectra stayed the same
int specIn = references.stream().mapToInt(BinaryClusterFileReference::getnSpectra).sum();
Expand Down

0 comments on commit 25fa991

Please sign in to comment.