Skip to content

Commit

Permalink
Switch to expect_equal to set tolerance
Browse files Browse the repository at this point in the history
  • Loading branch information
cforgaci committed Dec 19, 2024
1 parent e1d457d commit f5dafec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-valley.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ test_that("valley polygon is correctly constructed", {
quiet = TRUE) |>
sf::st_as_sfc()

expect_true(sf::st_equals(valley, expected_valley, sparse = FALSE))
expect_equal(valley, expected_valley, tolerance = 1e-4)
})

0 comments on commit f5dafec

Please sign in to comment.