diff --git a/NEWS.md b/NEWS.md index d5a6c27d..677a0578 100644 --- a/NEWS.md +++ b/NEWS.md @@ -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). diff --git a/tests/testthat/test-s2-cell.R b/tests/testthat/test-s2-cell.R index 02cb0d7d..46626911 100644 --- a/tests/testthat/test-s2-cell.R +++ b/tests/testthat/test-s2-cell.R @@ -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", {