Skip to content

Commit 821a64d

Browse files
committed
add test
1 parent e4227c1 commit 821a64d

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

test/testBasicGraphs.jl

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,30 @@ end
353353

354354

355355

356+
@testset "test propagateBelief returning a partial" begin
357+
##
358+
359+
fg = initfg()
360+
361+
v0 = addVariable!(fg, :x0, ContinuousEuclid{2})
362+
363+
pp = PartialPrior(Normal(), (2,))
364+
f0 = addFactor!(fg, [:x0;], pp, graphinit=false)
365+
366+
##
367+
368+
bel, infd = propagateBelief(fg, v0, [f0;])
369+
370+
@test isPartial(bel)
371+
372+
373+
##
374+
end
375+
376+
377+
378+
379+
356380

357381

358382

0 commit comments

Comments
 (0)