From 623b626b4a883272937ceba3a4a8f70f2e465be9 Mon Sep 17 00:00:00 2001 From: Daniel Date: Fri, 22 Mar 2024 15:58:55 +0100 Subject: [PATCH] Update tests/testthat/test-data_expand.R Co-authored-by: Etienne Bacher <52219252+etiennebacher@users.noreply.github.com> --- tests/testthat/test-data_expand.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testthat/test-data_expand.R b/tests/testthat/test-data_expand.R index 9bb5b8196..330acb20b 100644 --- a/tests/testthat/test-data_expand.R +++ b/tests/testthat/test-data_expand.R @@ -26,7 +26,7 @@ test_that("data_expand: simple use case", { test_that("data_expand: errors", { data(mtcars) - d <- as.data.frame(head(mtcars)) + d <- head(mtcars) expect_error(data_expand(d), regex = "No column") expect_error(data_expand(d, expand = c("mpg", "gear")), regex = "a single string") expect_error(data_expand(d, expand = "geas"), regex = "The column provided")