Skip to content

Commit 1c73f8f

Browse files
committed
use isapprox for entropy test
1 parent 428d819 commit 1c73f8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/others.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ if get_stage() in ("Others", "all")
132132
d1 = TuringDiagMvNormal(zeros(10), sigmas)
133133
d2 = MvNormal(zeros(10), sigmas)
134134

135-
@test entropy(d1) == entropy(d2)
135+
@test isapprox(entropy(d1), entropy(d2), rtol = 1e-6)
136136
end
137137

138138
@testset "Params" begin

0 commit comments

Comments
 (0)