Skip to content

Commit e5b8564

Browse files
committed
Assertions in Float
1 parent 08e34be commit e5b8564

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/WilliamsonTransforms.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,8 @@ struct 𝒲₋₁{Tϕ} <: Distributions.ContinuousUnivariateDistribution
9090
ϕ::Tϕ
9191
d::Int64
9292
function 𝒲₋₁(ϕ,d)
93-
@assert ϕ(0) == 1
94-
@assert ϕ(Inf) == 0
93+
@assert ϕ(0.0) == 1.0
94+
@assert ϕ(float(Inf)) == 0.0
9595
# And assertion about d-monotony... how can this be check ? this is hard.
9696
return new{typeof(ϕ)}(ϕ,d)
9797
end

0 commit comments

Comments
 (0)