From 8728097ad536572b772085b42ae407be38cc14e9 Mon Sep 17 00:00:00 2001 From: theogf Date: Sat, 27 Jan 2024 17:16:21 +0100 Subject: [PATCH] use isapprox --- test/runtests.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index f15374d7..499c2f8b 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -462,8 +462,8 @@ end @test std(d) == one($μ) d = Normal(;μ=$μ, $std_param=$val) @test mean(d) == $μ - @test var(d) == abs2($σ) - @test std(d) == $σ + @test var(d) ≈ abs2($σ) + @test std(d) ≈ $σ end end end