diff --git a/src/WilliamsonTransforms.jl b/src/WilliamsonTransforms.jl index a38c7ed..ec35610 100644 --- a/src/WilliamsonTransforms.jl +++ b/src/WilliamsonTransforms.jl @@ -90,8 +90,8 @@ struct 𝒲₋₁{TĪ•} <: Distributions.ContinuousUnivariateDistribution Ī•::TĪ• d::Int64 function 𝒲₋₁(Ī•,d) - @assert Ī•(0) == 1 - @assert Ī•(Inf) == 0 + @assert Ī•(0.0) == 1.0 + @assert Ī•(float(Inf)) == 0.0 # And assertion about d-monotony... how can this be check ? this is hard. return new{typeof(Ī•)}(Ī•,d) end