diff --git a/tests/testthat/test-data_summary.R b/tests/testthat/test-data_summary.R index 16adf9ddb..aede5c042 100644 --- a/tests/testthat/test-data_summary.R +++ b/tests/testthat/test-data_summary.R @@ -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" + ) })