JAL-4159 fix up test for applicable filters for pasimap feature/JAL-4159_pasimap
authorJim Procter <jprocter@dundee.ac.uk>
Fri, 24 May 2024 15:43:42 +0000 (16:43 +0100)
committerJim Procter <jprocter@dundee.ac.uk>
Fri, 24 May 2024 15:43:42 +0000 (16:43 +0100)
test/jalview/gui/CalculationChooserTest.java

index 1fbad1d..ac02c03 100644 (file)
@@ -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);
     }
   }
 }