Skip to content

Commit

Permalink
Update test_inspect.R
Browse files Browse the repository at this point in the history
  • Loading branch information
macartan committed Oct 21, 2024
1 parent f2d1ba3 commit 1e53497
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion tests/testthat/test_inspect.R
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,20 @@ test_that("inspect outputs correct stanfit", {


test_that("inspect handles dots", {
expect_true(make_model("X->Y") |>
model <- make_model("X->Y")

expect_true(model |>
inspect("prior_hyperparameters", nodes = "Y") |>
length() == 4)

expect_true(
grab(model, what = "data_types", complete_data = TRUE) |>
nrow() == 4)

expect_true(
grab(model, what = "data_types", complete_data = FALSE) |>
nrow() == 9)

})


Expand Down

0 comments on commit 1e53497

Please sign in to comment.