tests/testthat/test-validate_metadata.R

context("validate_metadata")

test_that("validate_biblio throws an error when biblio.csv is empty", {
  expect_error(validate_biblio(data.frame()))
})

test_that("validate_attributes throws an error when biblio.csv is empty", {
  expect_error(validate_attributes(data.frame()))
})

test_that("validate_access throws an error when biblio.csv is empty", {
  expect_error(validate_access(data.frame()))
})

test_that("validate_creators throws an error when biblio.csv is empty", {
  expect_error(validate_creators(data.frame()))
})

Try the dataspice package in your browser

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

dataspice documentation built on May 17, 2021, 1:09 a.m.