Skip to content

Commit

Permalink
additional test using mmap_open() and file_open() directly
Browse files Browse the repository at this point in the history
  • Loading branch information
romainfrancois committed Nov 13, 2018
1 parent d5e118e commit ab357ae
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion r/tests/testthat/test-feather.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,17 @@ test_that("feather read/write round trip", {
tab3 <- read_feather(tf3)
expect_is(tab3, "arrow::Table")

# reading directly from arrow::io::MemoryMappedFile
tab4 <- read_feather(mmap_open(tf3))
expect_is(tab4, "arrow::Table")

# reading directly from arrow::io::ReadableFile
tab5 <- read_feather(file_open(tf3))
expect_is(tab5, "arrow::Table")

expect_equal(tib, as_tibble(tab1))
expect_equal(tib, as_tibble(tab2))
expect_equal(tib, as_tibble(tab3))
expect_equal(tib, as_tibble(tab4))
expect_equal(tib, as_tibble(tab5))
})

0 comments on commit ab357ae

Please sign in to comment.