tests/testthat/test-paths.R

test_that("getTestSets supports explicit path", {
  tmp <- tempfile("pg_testsets_")
  dir.create(tmp, recursive = TRUE)
  write('{"person":[]}', file.path(tmp, "alpha.json"))
  write('{"person":[]}', file.path(tmp, "beta.json"))

  sets <- sort(getTestSets(path = tmp))
  expect_equal(sets, c("alpha", "beta"))
})

Try the PatientGenerator package in your browser

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

PatientGenerator documentation built on Sept. 16, 2026, 1:06 a.m.