Skip to content

Commit

Permalink
style
Browse files Browse the repository at this point in the history
  • Loading branch information
joethorley committed Jan 7, 2025
1 parent 5b60d94 commit 931c4cc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
21 changes: 10 additions & 11 deletions tests/testthat/test-dev.R
Original file line number Diff line number Diff line change
Expand Up @@ -256,17 +256,16 @@ test_that("gamma_pois log_lik", {
# })

test_that("gamma_pois deviance snapshot", {
expect_snapshot(
{
withr::with_seed(
101, {
x <- ran_gamma_pois(10000, 3, 0.5)
}
)
deviance <- dev_gamma_pois(x, 3, 0.5)
deviance
}
)
expect_snapshot({
withr::with_seed(
101,
{
x <- ran_gamma_pois(10000, 3, 0.5)
}
)
deviance <- dev_gamma_pois(x, 3, 0.5)
deviance
})
})

test_that("gamma_pois ran", {
Expand Down
3 changes: 2 additions & 1 deletion tests/testthat/test-log-lik.R
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ test_that("beta_binom memoized function gives same outputs as non-memoized funct
log_lik_beta_binom(1:100, 200, 0.1, 0, memoize = TRUE)
)
withr::with_seed(
101, {
101,
{
x <- ran_beta_binom(1e7, 10, 0.5, 0.1)
}
)
Expand Down

0 comments on commit 931c4cc

Please sign in to comment.