inst/tinytest/test_followed_by_STE_POSTCODE.R

fbsp <- healthyAddress:::followed_by_STE_POSTCODE
expect_true(fbsp(0L, "MELBOURNE VIC 3000"))
expect_true(fbsp(1L, "A DARWIN NT 0800"))
expect_true(fbsp(1L, "A SYDNEY NSW 2000"))
expect_true(fbsp(1L, "A BRISBANE, QLD 4000"))
expect_true(fbsp(1L, "A ADELAIDE, SA 5000"))
expect_true(fbsp(1L, "A PERTH, WA 6000"))
expect_true(fbsp(1L, "A HOBART, TAS 7000"))
expect_false(fbsp(1L, "MELBOURNE VIC 3000"))

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.