From 2cd2e24f57ce483ecf5c711467fb659ee12964d4 Mon Sep 17 00:00:00 2001 From: Palash Tyagi <23239946+Magnus167@users.noreply.github.com> Date: Tue, 8 Jul 2025 23:21:59 +0100 Subject: [PATCH] Add test for gamma_cdf_func to validate behavior for negative input --- src/compute/stats/distributions.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compute/stats/distributions.rs b/src/compute/stats/distributions.rs index cfd554e..63534d5 100644 --- a/src/compute/stats/distributions.rs +++ b/src/compute/stats/distributions.rs @@ -360,6 +360,7 @@ mod tests { // <0 case assert_eq!(gamma_pdf_func(-1.0, 1.0, 1.0), 0.0); + assert_eq!(gamma_cdf_func(-1.0, 1.0, 1.0), 0.0); } #[test] fn test_gamma_matrix() {