Skip to content

Commit

Permalink
maybe fix check
Browse files Browse the repository at this point in the history
  • Loading branch information
paleolimbot committed Mar 31, 2024
1 parent bcb241d commit 600564b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions tests/testthat/test-wkb.R
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,9 @@ test_that("st_as_sfc() for WKB can promote_to_multi for multilinestring + linest

# st_as_sfc() assigns different attribute order than st_cast, but we ony care
# about whether the geometries are correct
expect_equal(
expect_equivalent(
st_as_sfc(wkb_mixed, promote_to_multi = TRUE),
st_cast(sfc_mixed, "MULTILINESTRING"),
ignore_attr = TRUE
st_cast(sfc_mixed, "MULTILINESTRING")
)
})

Expand All @@ -120,9 +119,8 @@ test_that("st_as_sfc() for WKB can promote_to_multi for multipolygon + polygon",

# st_as_sfc() assigns different attribute order than st_cast, but we ony care
# about whether the geometries are correct
expect_equal(
expect_equivalent(
st_as_sfc(wkb_mixed, promote_to_multi = TRUE),
st_cast(sfc_mixed, "MULTILINESTRING"),
ignore_attr = TRUE
st_cast(sfc_mixed, "MULTILINESTRING")
)
})

0 comments on commit 600564b

Please sign in to comment.