From 410090e38f43df0005a826633cbac21f69fdf4bb Mon Sep 17 00:00:00 2001 From: Daniel Date: Sun, 3 Mar 2024 23:44:18 +0100 Subject: [PATCH] add test --- tests/testthat/test-data_summary.R | 5 +++++ 1 file changed, 5 insertions(+) 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" + ) })