tests/testthat/test-gdd.R

context("gdd")
expect_numeric <- function(x) expect_is(x, "numeric")

test_that("gdd works", {
  df <- data.frame(tmax = runif(100, 6, 10), tmin = runif(100, 4, 6))
  results <- gdd(df$tmax, df$tmin, tbase = 5, tbase_max = 30)
  expect_numeric(results)
})

Try the pollen package in your browser

Any scripts or data that you put into this service are public.

pollen documentation built on Dec. 11, 2021, 9:30 a.m.