tests/testthat/test-imd_northern_ireland_soa.R

test_that("correct number of rows", {
  expect_equal(nrow(imd_northern_ireland_soa), 890)
})

test_that("NI codes", {
  expect_equal(unique(substr(imd_northern_ireland_soa$soa_code, 1, 1)), "9")
})
matthewgthomas/IMD documentation built on Feb. 23, 2025, 12:10 p.m.