tests/testthat/test-search-by-id.R

context("test-search-by-id")

test_that("ID is not a character", {
  expect_error(search_by_id(123), "*is not TRUE")
  expect_error(search_by_id(list()), "*is not TRUE")
})

Try the dataesgobr package in your browser

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

dataesgobr documentation built on June 18, 2019, 5:04 p.m.