From 6b4319fb38bc15ddce1d91aac65be0b3448007cb Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Fri, 24 May 2024 16:43:42 +0100 Subject: [PATCH] JAL-4159 fix up test for applicable filters for pasimap --- test/jalview/gui/CalculationChooserTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } } } -- 1.7.10.2