Skip to content

Commit 20ffc79

Browse files
authored
Increase tolerances
1 parent d24e6b0 commit 20ffc79

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/sample.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@
130130
@test all(x -> isapprox(mean(@view x.as[2:end]), 0.5; atol=5e-2), chains)
131131
@test all(x -> isapprox(var(@view x.as[2:end]), 1 / 12; atol=5e-3), chains)
132132
@test all(x -> isapprox(mean(@view x.bs[2:end]), 0; atol=5e-2), chains)
133-
@test all(x -> isapprox(var(@view x.bs[2:end]), 1; atol=5e-2), chains)
133+
@test all(x -> isapprox(var(@view x.bs[2:end]), 1; atol=1e-1), chains)
134134

135135
# test reproducibility
136136
Random.seed!(1234)
@@ -199,7 +199,7 @@
199199
@test all(x -> isapprox(mean(@view x.as[2:end]), 0.5; atol=5e-2), chains)
200200
@test all(x -> isapprox(var(@view x.as[2:end]), 1 / 12; atol=5e-3), chains)
201201
@test all(x -> isapprox(mean(@view x.bs[2:end]), 0; atol=5e-2), chains)
202-
@test all(x -> isapprox(var(@view x.bs[2:end]), 1; atol=5e-2), chains)
202+
@test all(x -> isapprox(var(@view x.bs[2:end]), 1; atol=1e-1), chains)
203203

204204
# Test reproducibility.
205205
Random.seed!(1234)
@@ -245,7 +245,7 @@
245245
@test all(x -> isapprox(mean(@view x.as[2:end]), 0.5; atol=5e-2), chains)
246246
@test all(x -> isapprox(var(@view x.as[2:end]), 1 / 12; atol=5e-3), chains)
247247
@test all(x -> isapprox(mean(@view x.bs[2:end]), 0; atol=5e-2), chains)
248-
@test all(x -> isapprox(var(@view x.bs[2:end]), 1; atol=5e-2), chains)
248+
@test all(x -> isapprox(var(@view x.bs[2:end]), 1; atol=1e-1), chains)
249249

250250
# Test reproducibility.
251251
Random.seed!(1234)

0 commit comments

Comments
 (0)