tests/testthat/test-dmonth.R

context("test-dmonth")

test_that("dmonth works", {
  expect_equal(dmonth(2022,5), 31)
})

test_that("dmonth error", {
  expect_error(dmonth(2022,"l"), ".")
})

Try the vein package in your browser

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

vein documentation built on April 30, 2023, 1:10 a.m.