tests/test-utils.R

test_that("Default functions work", {
  expect_error(c(1, 2) %if_empty_string% NULL)
  expect_error(c("", "") %if_empty_string% NULL)
  
  expect_identical("hi" %if_empty_string% "bye", "hi")
  expect_identical("" %if_empty_string% "bye", "bye")
})
Global-TIES-for-Children/test-data-project documentation built on Feb. 13, 2021, 9:07 a.m.