inst/tinytest/test_is_postcode.R

expect_true(healthyAddress:::isPostcode(2000L) & TRUE)
expect_false(healthyAddress:::isPostcode(NA_integer_) & TRUE)
expect_equal(healthyAddress:::isPostcode(4513L), 1L) # new postcode
expect_equal(healthyAddress:::isPostcode(6219L), 1L) # new postcode

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.