Skip to content

Commit

Permalink
Update tests/testthat/test-dbetabinom.R
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Sabanes Bove <[email protected]>
  • Loading branch information
audreyyeoCH and danielinteractive authored Aug 24, 2023
1 parent 037cde8 commit e12213c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testthat/test-dbetabinom.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ test_that("the sum of the dbetabinom density for all x is 1.", {
expect_equal(result, 1)
})

test_that("Beta binomial density has a result of 0.04286893, given x = 2; m = 29; a = 0.2; b = 0.4.", {
test_that("Beta binomial density has correct numeric result for specific inputs", {
result <- dbetabinom(x = 2, m = 29, a = 0.2, b = 0.4)
expect_equal(result, 0.04286893)
})
Expand Down

0 comments on commit e12213c

Please sign in to comment.