From 228da0e1ea9df61f81fba246c1a73c165cee85e5 Mon Sep 17 00:00:00 2001 From: Alex Arslan Date: Fri, 28 Jun 2024 10:24:09 -0700 Subject: [PATCH] whoops --- test/truncated/lognormal.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/truncated/lognormal.jl b/test/truncated/lognormal.jl index 25fb6b30ef..e5bf2b2a24 100644 --- a/test/truncated/lognormal.jl +++ b/test/truncated/lognormal.jl @@ -27,7 +27,7 @@ naive_moment(d, n, μ, σ²) = (σ = sqrt(σ²); expectation(x -> ((x - μ) / σ # Without a `max(_, 0)`, this would be within machine precision of 0 (as above) but # numerically negative, which could cause downstream issues that assume a nonnegative # variance - @test v1 > 0 + @test v1 >= 0 # Compare results with not specifying a lower bound at all d2 = truncated(LogNormal(1, 5); upper=1e5) @test mean(d1) == mean(d2)