tests/testthat/test_clean.R

test_that("Doubling a set of records results and cleaning results in a clean set.", {

  ## we don't want this to run on CRAN

  skip_on_cran()
  fiftyds <- get_datasets(limit = 50)
  nextds <- get_datasets(limit = 50)

  doubled <- c(fiftyds, nextds)
  cleaned <- clean(doubled)
  testthat::expect_equivalent(getids(fiftyds), getids(cleaned))
})

Try the neotoma2 package in your browser

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

neotoma2 documentation built on May 29, 2024, 6:21 a.m.