tests/testthat/test-load_prepare_data.R

test_that("divideNChunks - check the amount of generated shapefiles",{
  shapefile_divided <- divideNChunks(shapefile = shapefile,
                                     shapefile_bounds = shapefile_bounds,
                                     region_col_name = "NAME")

  expect_equal(length(shapefile_divided), nrow(shapefile_bounds@data))
})
mur4mat/floodshp documentation built on Dec. 16, 2019, 12:37 a.m.