Skip to content

Commit

Permalink
lintr, styler
Browse files Browse the repository at this point in the history
  • Loading branch information
strengejacke committed Oct 8, 2024
1 parent 120b727 commit 892b86c
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions tests/testthat/test-renaming.R
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
test_that("renaming columns", {
# should warn the user
expect_warning(
{
out <- correlation(anscombe,
select = c("x1", "x2"),
rename = c("var1")
)
}
)
expect_warning({
out <- correlation(anscombe,
select = c("x1", "x2"),
rename = "var1"
)
})
expect_snapshot(print(out))

expect_snapshot(correlation(anscombe,
Expand Down

0 comments on commit 892b86c

Please sign in to comment.