Skip to content

Commit 8a6ba1f

Browse files
committed
More tests
1 parent 59dfbbd commit 8a6ba1f

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

RcppTskit/tests/testthat/test_TableCollection.R

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,12 @@ test_that("TableCollection index lifecycle and tree_sequence index handling work
245245
# rtsk_treeseq_init() builds indexes in an internal ts, not in tc itself,
246246
# so the tc in this environment will not have indexes here
247247
expect_false(tc$has_index())
248-
expect_no_error(tc$build_index())
249-
expect_true(tc$has_index())
250-
251248
ts2 <- tc$tree_sequence()
252249
expect_true(is(ts2, "TreeSequence"))
253250
expect_true(tc$has_index())
251+
252+
expect_no_error(tc$drop_index())
253+
expect_false(tc$has_index())
254+
expect_no_error(tc$build_index())
255+
expect_true(tc$has_index())
254256
})

0 commit comments

Comments
 (0)