tests/testthat/test-format_ah_division_name.R

test_that("Replace whitespace", {
    expect_equal(format_ah_division_name("Red Hill"), "red-hill")
})

test_that("Replace special characters", {
    expect_equal(format_ah_division_name("O'Connor"),"o-connor")
    expect_equal(format_ah_division_name("O’Connor"),"o-connor")
})

Try the allhomes package in your browser

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

allhomes documentation built on Sept. 9, 2022, 9:06 a.m.