Skip to content

Commit

Permalink
Adjust presition
Browse files Browse the repository at this point in the history
  • Loading branch information
cforgaci committed Dec 19, 2024
1 parent 9d96fe8 commit 09b5dc1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/testthat/test-valley.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ test_that("valley polygon is correctly constructed", {
quiet = TRUE) |>
sf::st_as_sfc()

valley <- st_set_precision(valley, 1e-06)
expected_valley <- st_set_precision(expected_valley, 1e-06)
expect_true(sf::st_equals_exact(valley, expected_valley,
par = 1.e-3, sparse = FALSE))
par = 1.e-4, sparse = FALSE))
})

0 comments on commit 09b5dc1

Please sign in to comment.