From 25fa991fe6c72dfbcab29f39686be53b350b6da6 Mon Sep 17 00:00:00 2001 From: Johannes Griss Date: Wed, 17 Oct 2018 09:09:10 +0100 Subject: [PATCH] Adapted test for fixed Rebinner --- .../ebi/pride/spectracluster/binning/BinaryFileBinnerTest.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/test/java/uk/ac/ebi/pride/spectracluster/binning/BinaryFileBinnerTest.java b/src/test/java/uk/ac/ebi/pride/spectracluster/binning/BinaryFileBinnerTest.java index 455d594..5968965 100644 --- a/src/test/java/uk/ac/ebi/pride/spectracluster/binning/BinaryFileBinnerTest.java +++ b/src/test/java/uk/ac/ebi/pride/spectracluster/binning/BinaryFileBinnerTest.java @@ -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();