Skip to content

Commit

Permalink
Add suggested test with tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
inpowell committed Aug 20, 2024
1 parent 35c8535 commit d17e1b2
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/testthat/test-cell_suppression.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,16 @@ test_that("determine_cell_suppression correctly suppresses cells", {
testthat::expect_equal(soln, test$suppress, check.attributes = FALSE)
})

test_that("suppress_secondary deals with an empty nullspace (#9)", {
data <- seq(0, 10, by = 2)
suppress <- c(FALSE, TRUE, TRUE, FALSE, FALSE, FALSE)
nullspace <- matrix(NA_real_, nrow = 0, ncol = 6)
expect_equal(
suppress_secondary(data, suppress, nullspace),
suppress
)
})

test_that("suppress_secondary aborts if bounds are too tight", {
skip_if_not_installed('ROI.plugin.highs')

Expand Down

0 comments on commit d17e1b2

Please sign in to comment.