Skip to content

Commit

Permalink
Round(1) to try to resolve cross-platform discrepancies in test results
Browse files Browse the repository at this point in the history
  • Loading branch information
tripartio committed Sep 27, 2024
1 parent 96634c3 commit bcaed32
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/testthat/test-autogam.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ test_that("autogam works on mtcars", {
autogam(mtcars, 'mpg') |>
coef() |>
sum() |>
round(3),
11.253
round(1), # rounding needed for consistency across testing platforms
11.3
)
})

0 comments on commit bcaed32

Please sign in to comment.