tests/testthat/test-get_contacts.R

test_that("Non integer x returns nothing:", {
  noint <- get_contacts(x = "Goring")
  expect_length(noint, 1)
})

test_that("Integer x returns sets of contacts:", {
  single <- get_contacts(x = 1)
  expect_true(class(single) == "contacts")
})

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.