Skip to content

Commit 8c233c3

Browse files
Fix C tests: pass DBL_MIN as likelihood_threshold instead of old precision value
The ancestor_matcher2_alloc signature changed from precision (int) to likelihood_threshold (double) in e272b1e, but the test helper still passed 14 (the old precision). This caused 8 matcher tests to fail.
1 parent b760489 commit 8c233c3

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lib/tests/tests.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1124,7 +1124,8 @@ run_match(const tsk_treeseq_t *ts, double rho, double mu, const allele_t *h,
11241124
ret = matcher_indexes_alloc(&mi, ts->tables, NULL, 0);
11251125
CU_ASSERT_EQUAL_FATAL(ret, 0);
11261126
/* matcher_indexes_print_state(&mi, stdout); */
1127-
ret = ancestor_matcher2_alloc(&am, &mi, recombination_rate, mutation_rate, 14, 0);
1127+
ret = ancestor_matcher2_alloc(
1128+
&am, &mi, recombination_rate, mutation_rate, DBL_MIN, 0);
11281129
CU_ASSERT_EQUAL_FATAL(ret, 0);
11291130

11301131
ret = ancestor_matcher2_find_path(

0 commit comments

Comments
 (0)