Skip to content

Commit

Permalink
one more c test
Browse files Browse the repository at this point in the history
  • Loading branch information
petrelharp committed Nov 6, 2023
1 parent d655dec commit 37f5387
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions c/tests/test_trees.c
Original file line number Diff line number Diff line change
Expand Up @@ -8256,6 +8256,12 @@ test_extend_edges_errors(void)
const char *migrations = "0 10 0 0 1 0.5\n"
"0 10 0 1 0 1.5\n";

tsk_treeseq_from_text(
&ts, 10, nodes, edges, NULL, sites, mutations, NULL, NULL, 0);
ret = tsk_treeseq_extend_edges(&ts, -2, 0, &ets);
CU_ASSERT_EQUAL_FATAL(ret, TSK_ERR_EXTEND_EDGES_BAD_MAXITER);
tsk_treeseq_free(&ts);

tsk_treeseq_from_text(
&ts, 10, nodes, edges, migrations, sites, mutations, NULL, NULL, 0);
ret = tsk_treeseq_extend_edges(&ts, 10, 0, &ets);
Expand Down

0 comments on commit 37f5387

Please sign in to comment.