From: Jim Procter Date: Fri, 24 May 2024 15:43:42 +0000 (+0100) Subject: JAL-4159 fix up test for applicable filters for pasimap X-Git-Tag: Release_2_11_4_0~31^2 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2Ffeature%2FJAL-4159_pasimap;p=jalview.git JAL-4159 fix up test for applicable filters for pasimap --- diff --git a/test/jalview/gui/CalculationChooserTest.java b/test/jalview/gui/CalculationChooserTest.java index 1fbad1d..ac02c03 100644 --- a/test/jalview/gui/CalculationChooserTest.java +++ b/test/jalview/gui/CalculationChooserTest.java @@ -119,12 +119,12 @@ public class CalculationChooserTest assertSame(filtered.get(3), blosum62); filtered = CalculationChooser.getApplicableScoreModels(true, true, false,true); - assertEquals(filtered.size(), 0); + assertEquals(filtered.size(), 1); // DNA matrix for DNA pasimap for (int i=0; i<=8;i++) { boolean isDna = (i & 1) != 0,isPca = (i & 2) != 0,isSS = (i & 4) != 0; - assertEquals(CalculationChooser.getApplicableScoreModels(isDna,isPca,isSS,true).size(), 0); + assertEquals(CalculationChooser.getApplicableScoreModels(isDna,isPca,isSS,true).size(), (isDna) ? 1: 2); } } }