tests/testthat/test-misc.R

test_that("Misc functions work as expected", {

  skip_on_cran()

  expect_message(rgovcan:::msgError("Error"), "Error")
  expect_message(rgovcan:::msgSuccess("Success"), "Success")
  expect_message(rgovcan:::msgWarning("Warning"), "Warning")

  expect_true(is.na(rgovcan:::null_to_na(NULL)))
  expect_identical(rgovcan:::null_to_na(list(NULL, NULL)), list(NA, NA))

})

Try the rgovcan package in your browser

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

rgovcan documentation built on June 18, 2021, 5:07 p.m.