tests/testthat/test-cran.R

test_that("error on cran version greater than todo", {
  expect_error(cran_version("plumber", "0.4.0", "no 0.* in prod"))
})

test_that("cran version lte todo", {
  expect_invisible(cran_version("drake", "8.0.0", "breaking drake"))
})
edavidaja/todoordie documentation built on Dec. 23, 2021, 11:21 p.m.