Skip to content

Commit 9aa3621

Browse files
committed
fix weaken equality tests, update tolerance for LocationScale test
1 parent 466808d commit 9aa3621

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/families/location_scale.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
@test cov(z_samples; dims=2) cov(q_true) rtol = realtype(1e-2)
7979

8080
z_sample_ref = rand(StableRNG(1), q)
81-
@test z_sample_ref == rand(StableRNG(1), q)
81+
@test z_sample_ref rand(StableRNG(1), q)
8282
end
8383

8484
@testset "rand batch" begin
@@ -104,7 +104,7 @@
104104
end
105105
z_samples = mapreduce(first, hcat, res)
106106
z_samples_ret = mapreduce(last, hcat, res)
107-
@test z_samples == z_samples_ret
107+
@test z_samples z_samples_ret
108108
@test dropdims(mean(z_samples; dims=2); dims=2) mean(q_true) rtol = realtype(
109109
1e-2
110110
)
@@ -124,7 +124,7 @@
124124
@testset "rand! AbstractMatrix" begin
125125
z_samples = Array{realtype}(undef, n_dims, n_montecarlo)
126126
z_samples_ret = rand!(q, z_samples)
127-
@test z_samples z_samples_ret realtype(1e-2)
127+
@test z_samples z_samples_ret
128128
@test dropdims(mean(z_samples; dims=2); dims=2) mean(q_true) rtol = realtype(
129129
1e-2
130130
)
@@ -138,7 +138,7 @@
138138

139139
z_samples = Array{realtype}(undef, n_dims, n_montecarlo)
140140
rand!(StableRNG(1), q, z_samples)
141-
@test z_samples_ref == z_samples
141+
@test z_samples_ref z_samples
142142
end
143143
end
144144
end

0 commit comments

Comments
 (0)