From e6c7bc03b3a12456d395e4796451da44238baee3 Mon Sep 17 00:00:00 2001 From: Daniel Sjoberg Date: Mon, 15 Apr 2024 14:14:45 -0700 Subject: [PATCH] Update test-ard_stats_anova.R --- tests/testthat/test-ard_stats_anova.R | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/testthat/test-ard_stats_anova.R b/tests/testthat/test-ard_stats_anova.R index b2be9a90b..918caf4a9 100644 --- a/tests/testthat/test-ard_stats_anova.R +++ b/tests/testthat/test-ard_stats_anova.R @@ -129,3 +129,14 @@ test_that("ard_stats_anova.data.frame() works", { ard_anova_geeglm ) }) + +test_that("ard_stats_anova.data.frame() error messaging", { + expect_error( + ard_stats_anova( + x = mtcars, + formulas = list(mpg ~ am, mpg ~ am + hp), + fn = "base::lm" + ), + "cannot be namespaced" + ) +})