Skip to content

Commit

Permalink
Update test for new arrow release (#764)
Browse files Browse the repository at this point in the history
* Update test for new arrow release

* Update NEWS
  • Loading branch information
juliasilge authored Aug 16, 2023
1 parent c72356e commit 4500de2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

* Added new board for Google Drive `board_gdrive()` (#749).

* Updated test for new arrow release (#764).

# pins 1.2.0

## Breaking changes
Expand Down
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 4500de2

Please sign in to comment.