tests/testthat/test-function-month_numbers.R

test_that("month_numbers() works", {

  f <- kwb.dwd:::month_numbers

  result <- f()

  expect_true(is.list(result))
  expect_identical(as.integer(result), 1:12)
})
KWB-R/kwb.dwd documentation built on Sept. 28, 2022, 6:03 p.m.