Skip to content

Commit

Permalink
test: correct tests for sf_bbox_to_lonlat_query
Browse files Browse the repository at this point in the history
  • Loading branch information
elipousson committed Nov 24, 2022
1 parent 6dafc56 commit 26c025f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-sf_bbox.R
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ test_that("sf_bbox functions work", {
expect_s3_class(sf_bbox_contract(nc_bbox, 50, 50), "bbox")
expect_s3_class(sf_bbox_shift(nc_bbox, c(0, 10), c(0, 10)), "bbox")

expect_s3_class(sf_bbox_to_lonlat_query(nc_bbox), "character")
expect_s3_class(sf_bbox_to_lonlat_query(nc_bbox, coords = c("lat", "lon")), "character")
expect_type(sf_bbox_to_lonlat_query(nc_bbox), "character")
expect_type(sf_bbox_to_lonlat_query(nc_bbox, coords = c("lat", "lon")), "character")
expect_error(sf_bbox_to_lonlat_query("nc_bbox"))

expect_match(sf_bbox_to_wkt(nc_bbox), "^POLYGON")
Expand Down

0 comments on commit 26c025f

Please sign in to comment.