tests/testthat/test-vpfile.R

pvolfile <- system.file("extdata", "volume.h5", package = "bioRad")
vpfile <- system.file("extdata", "profile.h5", package = "bioRad")

test_that("is.vpfile() can identify ODIM HDF5 vertical profile files", {
  expect_true(is.vpfile(vpfile))
  expect_false(is.vpfile(pvolfile))
  expect_warning(is.vpfile("not_a_file"), "Can't find") # From get_odim_object_type
})

Try the bioRad package in your browser

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

bioRad documentation built on Oct. 20, 2023, 5:06 p.m.