From 4c382e38d7a4d5df3af6438690ead8e60f1fec98 Mon Sep 17 00:00:00 2001 From: Dewey Dunnington Date: Tue, 27 Dec 2022 10:02:16 -0400 Subject: [PATCH] Fix data frame test (#207) * fix data frame test * news bullet --- NEWS.md | 3 +++ tests/testthat/test-s2-cell.R | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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", {