You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ah...@apache.org on 2020/04/05 12:44:11 UTC

[commons-numbers] 06/06: Increase coverage in RegularizedBetaTest.

This is an automated email from the ASF dual-hosted git repository.

aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-numbers.git

commit f91f812e40e5928fc8cb29c1c4db27e6033465f7
Author: Alex Herbert <ah...@apache.org>
AuthorDate: Sun Apr 5 13:43:28 2020 +0100

    Increase coverage in RegularizedBetaTest.
---
 .../java/org/apache/commons/numbers/gamma/RegularizedBetaTest.java  | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/commons-numbers-gamma/src/test/java/org/apache/commons/numbers/gamma/RegularizedBetaTest.java b/commons-numbers-gamma/src/test/java/org/apache/commons/numbers/gamma/RegularizedBetaTest.java
index 96c0813..7fdeaed 100644
--- a/commons-numbers-gamma/src/test/java/org/apache/commons/numbers/gamma/RegularizedBetaTest.java
+++ b/commons-numbers-gamma/src/test/java/org/apache/commons/numbers/gamma/RegularizedBetaTest.java
@@ -68,6 +68,12 @@ public class RegularizedBetaTest {
         testRegularizedBeta(Double.NaN, 0.5, 1.0, 0.0);
     }
 
+
+    @Test
+    public void testRegularizedBetaAboveOnePositivePositive() {
+        testRegularizedBeta(Double.NaN, 1.5, 1.0, 2.0);
+    }
+
     @Test
     public void testRegularizedBetaPositivePositivePositive() {
         testRegularizedBeta(0.75, 0.5, 1.0, 2.0);