Skip to content

Commit 1f2adf8

Browse files
committed
add test for mergeVariableStates!
1 parent 68e1fbc commit 1f2adf8

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
@@ -795,7 +795,8 @@ function VSDTestBlock!(fg, v1)
795795
@test mergeVariableState!(fg, :a, vnd) == 1
796796

797797
# Bulk copy update x0
798-
@test DFG.mergeVariableStates!(fg, Vector{Pair{Symbol, VariableState}}([:a=>vnd])) == 1
798+
@test DFG.mergeVariableStates!(fg, [:a=>vnd]) == 1
799+
@test DFG.mergeVariableStates!(fg, :a, [vnd]) == 1
799800
altVnd = vnd |> deepcopy
800801
keepVnd = getVariableState(getVariable(fg, :a), :parametric) |> deepcopy
801802
altVnd.infoPerCoord .= [-99.0;]

0 commit comments

Comments
 (0)