Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Jan 9, 2025
1 parent 3485f0a commit 43f54c7
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/testthat/test-get_predicted.R
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,19 @@ test_that("get_predicted - brms, auxiliary", {
})


test_that("get_predicted - brms, categorical family", {
skip_on_cran()
skip_if_not_installed("brms")
skip_if_not_installed("httr2")

m <- insight::download_model("brms_categorical_1_fct")
out <- get_predicted(m, data = get_datagrid(m))
expect_identical(ncol(out), 4L)
expect_identical(nrow(out), 30L)
expect_named(out, c("Row", "Response", "mpg", "Predicted"))
})


# FA / PCA ----------------------------------------------------------------
# =========================================================================

Expand Down

0 comments on commit 43f54c7

Please sign in to comment.