tests/testthat/test-inspect_birthmonth.R

# common cases
test_that("inspect_birthmonth detects if birthmonth is correctly provided", {
  expect_equal(inspect_birthmonth("KNE12"), TRUE)
  expect_equal(inspect_birthmonth("ALS33"), FALSE)
  expect_equal(inspect_birthmonth("08DGT"), TRUE)
  expect_error(inspect_birthmonth(345))
})

Try the trustmebro package in your browser

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

trustmebro documentation built on June 8, 2025, 11:01 a.m.