tests/testthat/test-imd_scotland_iz.R

test_that("correct number of rows", {
  expect_equal(nrow(imd_scotland_iz), 1279)
})

test_that("Scottish IZ codes", {
  expect_equal(unique(substr(imd_scotland_iz$iz_code, 1, 1)), "S")
})

Try the IMD package in your browser

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

IMD documentation built on Sept. 30, 2022, 5:06 p.m.