From 466808d523f3182b4b6cd8bdbc303d60f122089e Mon Sep 17 00:00:00 2001 From: Kyurae Kim Date: Fri, 8 Nov 2024 19:42:20 -0800 Subject: [PATCH] fix relax exactness check for `rand!(LocationScale)` --- test/families/location_scale.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/families/location_scale.jl b/test/families/location_scale.jl index c112352e..f49a16bd 100644 --- a/test/families/location_scale.jl +++ b/test/families/location_scale.jl @@ -124,7 +124,7 @@ @testset "rand! AbstractMatrix" begin z_samples = Array{realtype}(undef, n_dims, n_montecarlo) z_samples_ret = rand!(q, z_samples) - @test z_samples == z_samples_ret + @test z_samples ≈ z_samples_ret realtype(1e-2) @test dropdims(mean(z_samples; dims=2); dims=2) ≈ mean(q_true) rtol = realtype( 1e-2 )