Skip to content

Commit

Permalink
One liner
Browse files Browse the repository at this point in the history
  • Loading branch information
DavisVaughan committed Aug 21, 2024
1 parent cda7a5b commit 0fda26d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/testthat/test-list-transpose.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@ test_that("can't transpose data frames", {
df <- data.frame(x = 1:2, y = 4:5)

# i.e. be consistent with other `list_*()` functions from purrr/vctrs
expect_snapshot(error = TRUE, {
list_transpose(df)
})
expect_snapshot(error = TRUE, list_transpose(df))
})

test_that("transposing empty list returns empty list", {
Expand Down

0 comments on commit 0fda26d

Please sign in to comment.