tests/testthat/test-is.pin.R

tomorrow_pin <- paste(paste(unlist(strsplit(as.character(Sys.Date()+1),split = "-")), collapse = ""),"0000",sep="")
test_pin <- c("196408233234")

context("is.pin")

test_that(desc="is.pin",{
  expect_is(is.pin(pin = test_pin), "logical")
  expect_equal(is.pin(pin = test_pin), expected = FALSE)
})

Try the sweidnumbr package in your browser

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

sweidnumbr documentation built on March 31, 2020, 5:24 p.m.