Skip to content

Commit

Permalink
test: mute stars test 🧪
Browse files Browse the repository at this point in the history
loreabad6 committed Sep 5, 2024
1 parent 7c4dba6 commit e60c4c8
Showing 2 changed files with 16 additions and 35 deletions.
19 changes: 0 additions & 19 deletions tests/testthat/_snaps/stars.md

This file was deleted.

32 changes: 16 additions & 16 deletions tests/testthat/test-stars.R
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
suppressPackageStartupMessages(library(sf))
library(stars)

poly = st_point(c(0.5,0.5)) |>
st_sfc(crs = 4326) |>
st_buffer(10000)
cls = "post_array"

test_that("subsetting post_array works as expected", {
out1 = as_post_array(
polygons,
geometry_summary = summarise_geometry_union
)[poly]
expect_snapshot(out1)
expect_s3_class(out1, cls)
})
# suppressPackageStartupMessages(library(sf))
# library(stars)
#
# poly = st_point(c(0.5,0.5)) |>
# st_sfc(crs = 4326) |>
# st_buffer(10000)
# cls = "post_array"
#
# test_that("subsetting post_array works as expected", {
# out1 = as_post_array(
# polygons,
# geometry_summary = summarise_geometry_union
# )[poly]
# expect_snapshot(out1)
# expect_s3_class(out1, cls)
# })

0 comments on commit e60c4c8

Please sign in to comment.