Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Mar 3, 2024
1 parent 502df98 commit 410090e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/testthat/test-data_summary.R
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,11 @@ test_that("data_summary, errors", {
data_summary(iris, by = "Species"),
regex = "No expressions for calculating"
)
# wrong expression
expect_error(
data_summary(mtcars, mw = mesn(mpg), by = "am"),
regex = "There was an error"
)
})


Expand Down

0 comments on commit 410090e

Please sign in to comment.