Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Nov 22, 2024
1 parent 968ba68 commit 49bf202
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Type: Package
Package: insight
Title: Easy Access to Model Information for Various Model Objects
Version: 0.99.0.21
Version: 0.99.0.22
Authors@R:
c(person(given = "Daniel",
family = "Lüdecke",
Expand Down
3 changes: 3 additions & 0 deletions tests/testthat/test-find_formula.R
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ test_that("formula warns when using backticks", {
expect_warning(expect_false(formula_ok(m)), regex = "syntactically")
expect_silent(expect_true(formula_ok(m, checks = "dollar")))
expect_error(formula_ok(m, checks = c("dollar", "test")), regex = "invalid options")
# null model checks formula
expect_warning(null_model(m), regex = "Looks like")
expect_silent(null_model(m, verbose = FALSE))
# message types
expect_message(expect_false(formula_ok(m, action = "message")), regex = "syntactically")
expect_error(expect_false(formula_ok(m, action = "error")), regex = "syntactically")
Expand Down

0 comments on commit 49bf202

Please sign in to comment.