From 8e78b2c8552075af4dff3ccab466a8986a81a59b Mon Sep 17 00:00:00 2001 From: Orion Yeung <11580988+orionyeung001@users.noreply.github.com> Date: Tue, 17 Sep 2024 10:43:34 -0500 Subject: [PATCH] test: test gumbel `sf` in tail --- src/distribution/gumbel.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/distribution/gumbel.rs b/src/distribution/gumbel.rs index 91878df1..ddd17e4e 100644 --- a/src/distribution/gumbel.rs +++ b/src/distribution/gumbel.rs @@ -510,6 +510,8 @@ mod tests { test_exact(f64::INFINITY, 1.0, 1.0, sf(0.0)); test_exact(f64::INFINITY, 1.0, 1.0, sf(1.0)); test_exact(f64::INFINITY, 1.0, 1.0, sf(5.0)); + test_absolute(0.0, 1.0, 4.248354255291589e-18, 1e-32, sf(40.0)); + test_absolute(0.0, 1.0, 1.804851387845415e-35, 1e-50, sf(80.0)); } #[test]