Skip to content

Commit f53f123

Browse files
committed
Tests failing until forester version updated
1 parent 740df91 commit f53f123

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

biojava-phylo/src/main/java/org/biojava/nbio/phylo/DistanceMatrixCalculator.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ public static <C extends Sequence<D>, D extends Compound> DistanceMatrix dissimi
384384
* MultipleSequenceAlignment
385385
* @return
386386
*/
387-
public static <C extends Sequence<D>, D extends Compound> DistanceMatrix pamDistance(
387+
public static <C extends Sequence<D>, D extends Compound> DistanceMatrix pamMLdistance(
388388
MultipleSequenceAlignment<C, D> msa) {
389389

390390
// Need to import PAM1 matrix to biojava TODO

biojava-phylo/src/test/java/org/biojava/nbio/phylo/TestDistanceTreeEvaluator.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ public void testErrorFree() throws Exception {
4141
ForesterWrapper.cloneDM(DM), TreeConstructorType.NJ);
4242
double cv = DistanceTreeEvaluator.evaluate(tree, DM);
4343

44-
// Assert error free TODO now failing
45-
//assertEquals(0.0, cv, 0.001);
44+
// Assert error free
45+
assertEquals(0.0, cv, 0.001);
4646
}
4747

4848
@Test
@@ -65,7 +65,7 @@ public void testErrorEstimation() throws Exception {
6565
double cv = DistanceTreeEvaluator.evaluate(tree, m);
6666

6767
// Assert error is only 5%
68-
assertEquals(2.411, cv, 0.001);
68+
assertEquals(0.05, cv, 0.1);
6969

7070
}
7171
}

0 commit comments

Comments
 (0)