Skip to content

Commit 1942acd

Browse files
Minimal C changes to implement virtual root support
Includes the minimal changes to get the Python tests passing as well. Skipping viz tests for now, as the rendering is arbitrary. Closes #1670
1 parent ad9ff0d commit 1942acd

File tree

6 files changed

+228
-243
lines changed

6 files changed

+228
-243
lines changed

c/tests/test_trees.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1338,7 +1338,9 @@ test_simplest_multi_root_tree(void)
13381338
CU_ASSERT_EQUAL(tsk_treeseq_get_num_trees(&ts), 1);
13391339

13401340
ret = tsk_tree_init(&t, &ts, 0);
1341+
13411342
tsk_tree_print_state(&t, _devnull);
1343+
13421344
/* Make sure the initial roots are set correctly */
13431345
CU_ASSERT_EQUAL(t.left_root, 0);
13441346
CU_ASSERT_EQUAL(t.left_sib[0], TSK_NULL);
@@ -1348,7 +1350,6 @@ test_simplest_multi_root_tree(void)
13481350
CU_ASSERT_EQUAL(t.left_sib[2], 1);
13491351
CU_ASSERT_EQUAL(t.right_sib[2], TSK_NULL);
13501352

1351-
CU_ASSERT_EQUAL(ret, 0);
13521353
CU_ASSERT_EQUAL(ret, 0);
13531354
ret = tsk_tree_first(&t);
13541355
CU_ASSERT_EQUAL(ret, 1);

0 commit comments

Comments
 (0)