Skip to content

Commit d2ef0e1

Browse files
committed
[FIX] Float64 epsilon in unit test
1 parent 81a819b commit d2ef0e1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/changeprob.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ end
8080

8181
probaAVaR = risk_proba(prob, AVaR(beta), X)
8282

83-
@test abs(probaAVaR'*X - getobjectivevalue(m)) <= EPSILON[1]
83+
@test abs(probaAVaR'*X - getobjectivevalue(m)) <= Float64(EPSILON)
8484
end
8585

8686
# The convex set of probabilty distributions of AVaR_{beta} is defined by

0 commit comments

Comments
 (0)