Skip to content

Commit 228da0e

Browse files
committed
whoops
1 parent 8653c2d commit 228da0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/truncated/lognormal.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ naive_moment(d, n, μ, σ²) = (σ = sqrt(σ²); expectation(x -> ((x - μ) / σ
2727
# Without a `max(_, 0)`, this would be within machine precision of 0 (as above) but
2828
# numerically negative, which could cause downstream issues that assume a nonnegative
2929
# variance
30-
@test v1 > 0
30+
@test v1 >= 0
3131
# Compare results with not specifying a lower bound at all
3232
d2 = truncated(LogNormal(1, 5); upper=1e5)
3333
@test mean(d1) == mean(d2)

0 commit comments

Comments
 (0)