Skip to content

Commit 4e349d5

Browse files
committed
add test for mergeVariableStates!
1 parent 772aac5 commit 4e349d5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/testBlocks.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -789,6 +789,9 @@ function VSDTestBlock!(fg, v1)
789789

790790
@test DFG.mergeStates!(fg, Vector{Pair{Symbol, State}}([:a=>vnd])) == 1
791791

792+
@test DFG.mergeStates!(fg, [:a=>vnd]) == 1
793+
@test DFG.mergeStates!(fg, :a, [vnd]) == 1
794+
792795
altVnd = vnd |> deepcopy
793796
keepVnd = getState(getVariable(fg, :a), :parametric) |> deepcopy
794797

0 commit comments

Comments
 (0)