tests/testthat/test-assertions.R

test_that("mandatory parameters are checked", {
  expect_error(validate_parameters ( param = NULL, param_name = "test_param"))
})

test_that("assertions for closed vocabulary parameters", {
  expect_error(validate_paramters( typology = "wrong_typology"))
})

Try the regions package in your browser

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

regions documentation built on June 21, 2021, 5:06 p.m.