tests/testthat/test-bootSd.R

context("bootSd functions correctly")

test_that("bootSd removes NAs and throws appropriate errors", {
  expect_equal(bootSd(c(1,2,3,NA)), 1)
  expect_warning(bootSd("cats"))
  expect_error(bootSd())
})
ecology-rocks/MakeMyForests documentation built on May 15, 2019, 7:57 p.m.