Skip to content

Commit

Permalink
fix test - projjson not backwards compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
anthonynorth committed Dec 19, 2023
1 parent 36d2974 commit 1dc4c6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-wk-trans.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ test_that("proj_trans print method works", {
expect_match(str, "source_crs=OGC:CRS84", fixed = TRUE)
expect_match(str, "target_crs=EPSG:3857", fixed = TRUE)

crs_to_crs2 <- proj_create(wk::wk_crs_projjson("OGC:CRS84"), 3857)
crs_to_crs2 <- proj_create("OGC:CRS84", 3857)
str2 <- capture_output(print(crs_to_crs2))

expect_match(str2, "<proj_trans at .*>")
Expand Down

0 comments on commit 1dc4c6f

Please sign in to comment.