tests/testthat/test-pullSpeciesCodes.R

context("pullSpeciesCodes and RefSpecies load and function correctly")

test_that("pullSpeciesCodes finds a number correctly", {
  expect_equal(pullSpeciesCodes("ABCO"), 15)
  })

test_that("pullSpeciesCodes stops if nothing was found", {
  expect_error(pullSpeciesCodes("ABXY", RefSpecies))
})
davis-research/MakeMyForests documentation built on May 21, 2019, 11:40 a.m.