Skip to content

Commit

Permalink
Add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
llrs committed Dec 8, 2023
1 parent 1f0b31a commit 766af62
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/testthat/test-inspect.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ test_that("inspect with translate_index", {
index1 <- replicates(survey[-nas, columns], size_subset = 50,
iterations = 25, controls = 15)
index2 <- spatial(index1, survey[-nas, columns], iterations = 25)
i1 <- inspect(index, survey[-nas, columns])
i2 <- inspect(index2, i1)
i1 <- inspect(index1, survey[-nas, columns])
i2 <- inspect(index2, i1, index_name = "spatial")
expect_true(all(table(i2$batch, i2$spatial)<= 1))
})

0 comments on commit 766af62

Please sign in to comment.