tests/testthat/test-warn_na.R

context("warn_na.R")

test_that("outputs warnings as expected", {
  expect_warning(warn_na(c(x = 1, y = NA)))
  expect_error(warn_na(c(x = 1, 1)))
})
forestgeo/fgeo.tool documentation built on Sept. 11, 2022, 1:44 a.m.