We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59dfbbd commit 8a6ba1fCopy full SHA for 8a6ba1f
1 file changed
RcppTskit/tests/testthat/test_TableCollection.R
@@ -245,10 +245,12 @@ test_that("TableCollection index lifecycle and tree_sequence index handling work
245
# rtsk_treeseq_init() builds indexes in an internal ts, not in tc itself,
246
# so the tc in this environment will not have indexes here
247
expect_false(tc$has_index())
248
- expect_no_error(tc$build_index())
249
- expect_true(tc$has_index())
250
-
251
ts2 <- tc$tree_sequence()
252
expect_true(is(ts2, "TreeSequence"))
253
expect_true(tc$has_index())
+
+ expect_no_error(tc$drop_index())
+ expect_false(tc$has_index())
254
+ expect_no_error(tc$build_index())
255
+ expect_true(tc$has_index())
256
})
0 commit comments