Skip to content

Commit

Permalink
[1877781999]: stringsAsFactors=FALSE
Browse files Browse the repository at this point in the history
  • Loading branch information
gergness committed Jun 13, 2024
1 parent 1703d76 commit 5cb7a2b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-export-dataset.R
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ with_mock_crunch({
validExport <- function(df2) {
expect_identical(dim(df2), dim(ds))
expect_equal(df2$v3, df$v3)
expect_identical(levels(df2$v4), c("B", "C"))
expect_identical(sort(unique(df2$v4)), c("B", "C"))
## assert more
}
# nolint end
Expand Down Expand Up @@ -201,7 +201,7 @@ with_test_authentication({
write.csv(ds[ds$v4 == "C", ], file = filename)
df2 <- read.csv(filename)
expect_identical(nrow(df2), 10L)
expect_identical(levels(df2$v4), "C")
expect_identical(unique(df2$v4), "C")
})

test_that("Can filter columns in export", {
Expand Down

0 comments on commit 5cb7a2b

Please sign in to comment.