Skip to content

Commit

Permalink
Fix data frame test (#207)
Browse files Browse the repository at this point in the history
* fix data frame test

* news bullet
  • Loading branch information
paleolimbot authored Dec 27, 2022
1 parent e1f557a commit 4c382e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
# s2 (development version)

- Fixed test for `as.data.frame()` for `s2_cell()` to comply with new wk
version and the latest release of R (#207).

# s2 1.1.1

- Fix new CRAN check warnings (#202, #203).
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-s2-cell.R
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ test_that("s2_cell can be put into a data.frame", {
data.frame(geom = new_s2_cell(NA_real_)),
new_data_frame(list(geom = new_s2_cell(NA_real_)))
)
expect_error(as.data.frame(new_s2_cell(NA_real_)), "cannot coerce class")
expect_error(as.data.frame(new_s2_cell(NA_real_)), "cannot coerce")
})

test_that("s2_cell default format/print/str methods work", {
Expand Down

0 comments on commit 4c382e3

Please sign in to comment.