Skip to content

Commit 21ce55d

Browse files
committed
- flagged for rework and commented out a faulty test
1 parent 9b6bef3 commit 21ce55d

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

tests/testthat/test-BMCPMod.R

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -372,20 +372,21 @@ test_that("performBayesianMCPMod returns the right type of object under normal c
372372
# Tests for addSignificance -----------------------------------------------
373373

374374

375-
376-
test_that("addSignificance works as intended", {
377-
model_fits <- list(linear = 1)
378-
379-
model_fits_with_sign = addSignificance(model_fits, list(TRUE))
380-
expect_true(
381-
model_fits_with_sign[[1]][["significant"]]
382-
)
383-
384-
model_fits_with_sign = addSignificance(model_fits, list(FALSE))
385-
expect_false(
386-
model_fits_with_sign[[1]]$significant
387-
)
388-
})
375+
## TODO: This test did not capture that the addSignificance function
376+
## did not function as intended and must be re-worked.
377+
# test_that("addSignificance works as intended", {
378+
# model_fits <- list(linear = 1)
379+
#
380+
# model_fits_with_sign = addSignificance(model_fits, list(TRUE))
381+
# expect_true(
382+
# model_fits_with_sign[[1]][["significant"]]
383+
# )
384+
#
385+
# model_fits_with_sign = addSignificance(model_fits, list(FALSE))
386+
# expect_false(
387+
# model_fits_with_sign[[1]]$significant
388+
# )
389+
# })
389390

390391

391392

0 commit comments

Comments
 (0)