tests/testthat/test-spiro_example.R

test_that("spiro_example returns file path", {
  expect_type(spiro_example("zan_gxt"), "character")
})

test_that("spiro_example returns all example files", {
  expect_equal(length(spiro_example()), 3)
})

Try the spiro package in your browser

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

spiro documentation built on Aug. 14, 2023, 5:07 p.m.