Skip to content

Commit

Permalink
fix init test
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveBronder committed Apr 4, 2024
1 parent feee313 commit 1197ad4
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/testthat/test-fit-init.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,14 @@ test_that("Subsets of parameters are allowed", {


test_that("Pathfinder method works as init", {
utils::capture.output(fit_path_init <- mod_params$pathfinder(seed=1234,
utils::capture.output(fit_path_init <- mod_logistic$pathfinder(seed=1234, data = data_list_logistic,
refresh = 0, num_paths = 4))
expect_no_error(test_inits(mod_params, fit_path_init))
utils::capture.output(fit_path_init <- mod_params$pathfinder(seed=1234,
expect_no_error(test_inits(mod_logistic, fit_path_init,
data_list_logistic))
utils::capture.output(fit_path_init <- mod_logistic$pathfinder(seed=1234, data = data_list_logistic,
refresh = 0, num_paths = 1))
expect_no_error(test_inits(mod_params, fit_path_init))
expect_no_error(test_inits(mod_logistic, fit_path_init,
data_list_logistic))
})

test_that("Laplace method works as init", {
Expand Down

0 comments on commit 1197ad4

Please sign in to comment.