tests/testthat/test-errors.R

# library(testthat); devtools::load_all()

context("errors")

test_that("grow() warns and stops correctly", {
  expect_warning(grow("randomtext_aslkdasdkfjhkj", from = "base"))
  expect_warning(grow("mtcars", from = "datasets"))
  expect_error(grow(some_function, from = list()))
})
wlandau/grapes documentation built on May 4, 2019, 8:44 a.m.