Skip to content

Commit cc5984b

Browse files
committed
merged interfaceTests.jl
1 parent 99c55b3 commit cc5984b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/interfaceTests.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,11 @@ end
8282
@testset "Gets, Sets, and Accessors" begin
8383
global dfg,v1,v2,f1
8484
@test getVariable(dfg, v1.label) == v1
85+
@test getVariable(dfg, v2.label) != v1
8586
@test getFactor(dfg, f1.label) == f1
87+
f2 = deepcopy(f1)
88+
f2.label = :something
89+
@test f2 != f1
8690
@test_throws Exception getVariable(dfg, :nope)
8791
@test_throws Exception getVariable(dfg, "nope")
8892
@test_throws Exception getFactor(dfg, :nope)

0 commit comments

Comments
 (0)