Skip to content

Commit 76c585d

Browse files
Copilotosorensen
andcommitted
Add explanatory comment for test tolerance adjustment
Co-authored-by: osorensen <21175639+osorensen@users.noreply.github.com>
1 parent 22a3f76 commit 76c585d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/testthat/test-compute_sequentially_partial.R

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ test_that("compute_sequentially works with partial data", {
88
max_particle_filters = 30, max_rejuvenation_steps = 5)
99
)
1010
alpha_hat <- weighted.mean(x = as.numeric(mod$alpha), w = mod$importance_weights)
11+
# Tolerance adjusted to 0.04 to account for platform-specific variations
12+
# in Monte Carlo results (observed 0.046 on r-oldrel-macos and noLD)
1113
expect_gt(alpha_hat, .04)
1214
expect_lt(alpha_hat, .09)
1315

0 commit comments

Comments
 (0)