tests/testthat/test-read-json-file-gz.R

test_that("reading from gz compressed files works", {

  expect_identical(  
    read_json_file(testthat::test_path("examples/mtcars.json")),
    read_json_file(testthat::test_path("examples/mtcars.json.gz"))
  )
})

Try the yyjsonr package in your browser

Any scripts or data that you put into this service are public.

yyjsonr documentation built on May 29, 2024, 3:01 a.m.