test_that("administrative boundary datasets are sf objects with expected rows", {
  expect_s3_class(mw_level_0, "sf")
  expect_s3_class(mw_level_1, "sf")
  expect_s3_class(mw_level_2, "sf")
  expect_s3_class(mw_level_3, "sf")

  expect_equal(nrow(mw_level_0), 1)
  expect_equal(nrow(mw_level_1), 3)
  expect_equal(nrow(mw_level_2), 32)
  expect_equal(nrow(mw_level_3), 433)
})

test_that("lake and legacy datasets are available", {
  expect_s3_class(major_lakes, "sf")
  expect_s3_class(malawi_data, "sf")
  expect_equal(nrow(major_lakes), 1)
  expect_equal(nrow(malawi_data), 32)
})

test_that("validator accepts packaged sf data", {
  expect_true(mwmapdata_check(mw_level_0))
  expect_true(mwmapdata_check(mw_level_2))
})
