tests/testthat/test-count_imgs-examples.R

test_that("`count_frames()` works", {
  expect_equal(
    count_frames(system.file("img", "Rlogo.tif", package = "ijtiff")),
    structure(1, n_dirs = 1)
  )
  expect_equal(
    frames_count(test_path("testthat-figs", "2ch_ij.tif")),
    structure(5, n_dirs = 10)
  )
})

Try the ijtiff package in your browser

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

ijtiff documentation built on June 22, 2024, 11:54 a.m.