diff --git a/tests/testthat/test-07-download_osm.R b/tests/testthat/test-07-download_osm.R index 514b217..2853442 100644 --- a/tests/testthat/test-07-download_osm.R +++ b/tests/testthat/test-07-download_osm.R @@ -1,14 +1,11 @@ test_that("test download_osm", { - expect_equal(download_osm(x = "roads", mainPath = temp_dir, country = country, alwaysDownload = TRUE, - countryName = TRUE, + expect_equal(download_osm(mainPath = temp_dir, location = country, type = "roads", alwaysDownload = TRUE, mostRecent = TRUE, defaultClasses = TRUE), TRUE) - expect_equal(download_osm(x = "waterLines", mainPath = temp_dir, country = country, alwaysDownload = TRUE, - countryName = TRUE, + expect_equal(download_osm(mainPath = temp_dir, location = country, type = "waterLines", alwaysDownload = TRUE, mostRecent = TRUE, defaultClasses = TRUE), TRUE) - expect_equal(download_osm(x = "naturalPolygons", mainPath = temp_dir, country = country, alwaysDownload = TRUE, - countryName = TRUE, + expect_equal(download_osm(mainPath = temp_dir, country = country, type = "waterPolygons", alwaysDownload = TRUE, mostRecent = TRUE, defaultClasses = TRUE), TRUE) })