Skip to content

Commit 1bb9b3d

Browse files
committed
Add tests to improve coverage
1 parent aaf903d commit 1bb9b3d

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

RcppTskit/tests/testthat/test_variant_iterator_low_level.R

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@ test_that("low-level variant iterator validates samples and alleles inputs", {
9191
rtsk_variant_iterator_init(ts_xptr, samples = c(n_nodes + 1L)),
9292
"Node out of bounds"
9393
)
94+
expect_error(
95+
rtsk_variant_iterator_init(ts_xptr, alleles = c("A", NA_character_)),
96+
"alleles cannot contain NA"
97+
)
9498

9599
it <- rtsk_variant_iterator_init(ts_xptr, alleles = c("A", "C", "G", "T"))
96100
v <- rtsk_variant_iterator_next(it)

0 commit comments

Comments
 (0)