JAL-2424 resolved, assert updated to pass (1f != 1d)
authorJim Procter <jprocter@issues.jalview.org>
Tue, 2 May 2017 13:15:52 +0000 (14:15 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Tue, 2 May 2017 13:15:52 +0000 (14:15 +0100)
test/jalview/analysis/scoremodels/FeatureDistanceModelTest.java

index 02e64b6..f52ede9 100644 (file)
@@ -267,8 +267,9 @@ public class FeatureDistanceModelTest
     // these left to fail pending resolution of
     // JAL-2424 (computing score as 5/6, should be 5/5)
     // see also PCATest.testComputeSimilarity_featureDistances()
-    assertEquals(distances.getValue(0, 1), 1f, "JAL-2424!");
-    assertEquals(distances.getValue(1, 0), 1f);
+    assertEquals(distances.getValue(0, 1), 1d,
+            "expected identical pairs. (check normalisation for similarity score)");
+    assertEquals(distances.getValue(1, 0), 1d);
   }
 
   /**