Skip to content

Commit

Permalink
update getbb tests for #338
Browse files Browse the repository at this point in the history
  • Loading branch information
mpadge committed Jun 6, 2024
1 parent ddc49ee commit 5efaf15
Show file tree
Hide file tree
Showing 5 changed files with 84 additions and 37 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: osmdata
Title: Import 'OpenStreetMap' Data as Simple Features or Spatial Objects
Version: 0.2.5.013
Version: 0.2.5.014
Authors@R: c(
person("Mark", "Padgham", , "mark.padgham@email.com", role = c("aut", "cre")),
person("Bob", "Rudis", role = "aut"),
Expand Down
2 changes: 1 addition & 1 deletion codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"codeRepository": "https://github.com/ropensci/osmdata/",
"issueTracker": "https://github.com/ropensci/osmdata/issues",
"license": "https://spdx.org/licenses/GPL-3.0",
"version": "0.2.5.013",
"version": "0.2.5.014",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down
57 changes: 40 additions & 17 deletions tests/testthat/mock_bb_poly/nominatim/search-c1f6d2.json

Large diffs are not rendered by default.

57 changes: 40 additions & 17 deletions tests/testthat/mock_bb_sf/nominatim/search-c1f6d2.json

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion tests/testthat/test-getbb.R
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ test_that ("getbb-place_name", {
range2 <- apply (res2, 1, function (i) diff (range (i)))
expect_true (all (range2 >= range0))

expect_output (
expect_message (
res0 <- with_mock_dir ("mock_bb", {
getbb (place_name = "Salzburg", silent = FALSE)
})
Expand Down Expand Up @@ -132,6 +132,7 @@ test_that ("getbb-polygon", {
expect_is (res, "sf")
expect_is (res$geometry, "sfc_POLYGON")
expect_true (length (res$geometry) > 1)
expect_true (ncol (res) > 1)
})

test_that ("bbox-to-string", {
Expand Down

0 comments on commit 5efaf15

Please sign in to comment.