Skip to content

Commit

Permalink
Update test for new arrow release
Browse files Browse the repository at this point in the history
  • Loading branch information
juliasilge committed Aug 9, 2023
1 parent ff30f59 commit 56f2333
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/testthat/test-pin-read-write.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,21 @@ test_that("can round trip all types", {
board <- board_temp()

# Data frames
df <- data.frame(x = 1:10)
df <- tibble::tibble(x = 1:10)
pin_write(board, df, "df-1", type = "rds")
expect_equal(pin_read(board, "df-1"), df)

pin_write(board, df, "df-2", type = "parquet")
expect_equal(pin_read(board, "df-2"), df)

pin_write(board, df, "df-3", type = "arrow")
expect_equal(pin_read(board, "df-2"), df)
expect_equal(pin_read(board, "df-3"), df)

pin_write(board, df, "df-4", type = "csv")
expect_equal(pin_read(board, "df-3"), df)
expect_equal(pin_read(board, "df-4"), as.data.frame(df))

pin_write(board, df, "df-5", type = "qs")
expect_equal(pin_read(board, "df-4"), df)
expect_equal(pin_read(board, "df-5"), df)

# List
x <- list(a = 1:5, b = 1:10)
Expand Down

0 comments on commit 56f2333

Please sign in to comment.