Skip to content

Commit 792c389

Browse files
committed
fix test tolerances
1 parent f710d9f commit 792c389

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/testBearingRange2D.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,11 @@ addFactor!(fg, [:x0; :l1], p2br, graphinit=false)
225225
# check the forward convolution is working properly
226226
pts, = predictbelief(fg, :x0, ls(fg, :x0), N=75)
227227

228+
pts[3,:] .= TU.wrapRad.(pts[3,:])
228229
@show abs.(Statistics.mean(pts,dims=2))
229230
@test sum(abs.(Statistics.mean(pts,dims=2)) .< [2.0; 2.0; 2.0]) == 3
230231
@show Statistics.std(pts,dims=2)
231-
@test sum([0.1; 0.1; 0.01] .< Statistics.std(pts,dims=2) .< [5.0; 5.0; 2.0]) == 3
232+
@test sum([0.1; 2.0; 0.01] .< Statistics.std(pts,dims=2) .< [5.0; 10.0; 2.0]) == 3
232233

233234
##
234235

0 commit comments

Comments
 (0)