tests/testthat/test-ISRaD.rep.count.all.R

test_that("ISRaD.rep.count.all", {
  # Errors with bad input
  expect_error(ISRaD.rep.count.all(1))

  # Should return a data.frame with one column per table
  database <- ISRaD::Gaudinski_2001
  x <- ISRaD.rep.count.all(database)
  expect_s3_class(x, "data.frame")
  expect_identical(length(database), ncol(x))
})

Try the ISRaD package in your browser

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

ISRaD documentation built on Sept. 21, 2023, 9:06 a.m.