Skip to content

Commit dc1cae9

Browse files
committed
move truncated to tested distributions
1 parent 8affa46 commit dc1cae9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/runtests.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ separator()
134134
DistSpec(:TriangularDist, (1, 2), 1.5),
135135
DistSpec(:TriangularDist, (1, 3, 2), 1.5),
136136
DistSpec(:Triweight, (1, 1), 1),
137+
DistSpec(:((mu, sigma, l, u) -> Truncated(Normal(mu, sigma), l, u)), (0.0, 1.0, 1.0, 2.0), 1.5),
137138
DistSpec(:Uniform, (), 0.5),
138139
DistSpec(:Uniform, (0, 1), 0.5),
139140
DistSpec(:VonMises, (), 1),
@@ -152,8 +153,6 @@ separator()
152153
DistSpec(:NoncentralChisq, (1.0, 2.0), 0.5),
153154
DistSpec(:NoncentralF, (1, 2, 1), 0.5),
154155
DistSpec(:NoncentralT, (1, 2), 0.5),
155-
# Dispatch error caused by lack of type parameters in Distributions.Truncated
156-
DistSpec(:((mu, sigma, l, u) -> Truncated(Normal(mu, sigma), l, u)), (0.0, 1.0, 1.0, 2.0), 1.5),
157156
# Stackoverflow caused by SpecialFunctions.besselix
158157
DistSpec(:VonMises, (1.0,), 1.0),
159158
DistSpec(:VonMises, (1, 1), 1),

0 commit comments

Comments
 (0)