From e12213c40fd7b178fd1ff98c8d722b3c12f2c145 Mon Sep 17 00:00:00 2001 From: Audrey Yeo Date: Thu, 24 Aug 2023 12:04:03 +0200 Subject: [PATCH] Update tests/testthat/test-dbetabinom.R Co-authored-by: Daniel Sabanes Bove --- tests/testthat/test-dbetabinom.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testthat/test-dbetabinom.R b/tests/testthat/test-dbetabinom.R index 91ca79f7..0284b3dc 100644 --- a/tests/testthat/test-dbetabinom.R +++ b/tests/testthat/test-dbetabinom.R @@ -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) })