inst/tinytest/test_check_address_input.R

library(tinytest)
cai <- healthyAddress:::check_address_input

expect_warning(cai("foo", 2L), "thin")
expect_warning(cai(toString(c(LETTERS, 2000:1999)), 2L), "valid postcode")
expect_error(cai(strrep("A0 ", 34), 2L), "34")

Try the healthyAddress package in your browser

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

healthyAddress documentation built on April 12, 2025, 1:28 a.m.