Skip to content

Commit

Permalink
Fix test: workaround for data being out of sync with S4 class definit…
Browse files Browse the repository at this point in the history
…ion.

Fixes #303
  • Loading branch information
jeroen committed Apr 5, 2020
1 parent c9c22ef commit d3e990d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/testthat/test-serializeJSON-S4.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ test_that("Advanced S4 serialization", {
data(meuse, package = 'sp', envir = environment())
sp::coordinates(meuse) <- ~x+y
sp::proj4string(meuse) <- sp::CRS("+init=epsg:28992")
attr(meuse@proj4string, 'comment') = NULL
out <- jsonlite::unserializeJSON(jsonlite::serializeJSON(meuse))
expect_is(out, "SpatialPointsDataFrame")
expect_true(isS4(out))
Expand Down

0 comments on commit d3e990d

Please sign in to comment.