You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
416 B
16 lines
416 B
context("Shapefile integrity")
|
|
test_that("we can do something", {
|
|
|
|
us <- usa_composite()
|
|
cty <- counties_composite()
|
|
|
|
expect_that(us, is_a("SpatialPolygonsDataFrame"))
|
|
expect_that(cty, is_a("SpatialPolygonsDataFrame"))
|
|
|
|
expect_that(dim(us), equals(c(51, 13)))
|
|
expect_that(dim(cty), equals(c(3143, 8)))
|
|
|
|
expect_that(length(us@polygons), equals(51))
|
|
expect_that(length(cty@polygons), equals(3143))
|
|
|
|
})
|
|
|