Skip to content

Commit 09e3417

Browse files
committed
add test for mergeVariableStates!
1 parent 72a90e3 commit 09e3417

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/testBlocks.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,8 @@ function VSDTestBlock!(fg, v1)
792792
@test mergeVariableState!(fg, :a, vnd) == 1
793793

794794
# Bulk copy update x0
795-
@test DFG.mergeVariableStates!(fg, Vector{Pair{Symbol, VariableState}}([:a=>vnd])) == 1
795+
@test DFG.mergeVariableStates!(fg, [:a=>vnd]) == 1
796+
@test DFG.mergeVariableStates!(fg, :a, [vnd]) == 1
796797
altVnd = vnd |> deepcopy
797798
keepVnd = getVariableState(getVariable(fg, :a), :parametric) |> deepcopy
798799
altVnd.infoPerCoord .= [-99.0;]

0 commit comments

Comments
 (0)