Skip to content

Commit

Permalink
simplify tests
Browse files Browse the repository at this point in the history
  • Loading branch information
etiennebacher committed Sep 1, 2024
1 parent 522627a commit eeea756
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions tests/testthat/test-dataframe.R
Original file line number Diff line number Diff line change
Expand Up @@ -591,15 +591,9 @@ test_that("conversion of datatype Null to R works", {
df2$to_data_frame(),
data.frame(x = 1:2, y = c(NA, NA))
)

df3 = pl$DataFrame(x = 1, y = NULL)
expect_identical(
df3$to_data_frame(),
data.frame(x = 1, y = NA)
)
expect_identical(
as.data.frame(df3),
data.frame(x = 1, y = NA)
as.data.frame(df2),
data.frame(x = 1:2, y = c(NA, NA))
)
})

Expand Down

0 comments on commit eeea756

Please sign in to comment.