Skip to content

Commit

Permalink
Update tests/testthat/test-data_expand.R
Browse files Browse the repository at this point in the history
Co-authored-by: Etienne Bacher <[email protected]>
  • Loading branch information
strengejacke and etiennebacher committed Mar 22, 2024
1 parent bb14d43 commit 623b626
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-data_expand.R
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 623b626

Please sign in to comment.