Skip to content

Commit 055b0f8

Browse files
committed
assert file on loadDFG
1 parent fd59e09 commit 055b0f8

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/fileDFGTests.jl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,14 @@ using Test
4545
saveDFG(dfg, filename)
4646

4747
copyDfg = DistributedFactorGraphs._getDuplicatedEmptyDFG(dfg)
48+
copyDf2 = DistributedFactorGraphs._getDuplicatedEmptyDFG(dfg)
4849
@info "Going to load $filename"
4950

50-
#FIXME loadDFG!(copyDfg, filename), but use this to test deprecation
51-
retDFG = loadDFG(filename, Main, copyDfg) #, loaddir="/tmp")
51+
@test_throws AssertionError loadDFG!(copyDf2,"badfilename")
52+
53+
retDFG = loadDFG!(copyDfg, filename)
54+
# TODO REMOVE test deprecation
55+
retDFG_ = loadDFG(filename, Main, copyDfg2) #, loaddir="/tmp")
5256

5357
@test issetequal(ls(dfg), ls(retDFG))
5458
@test issetequal(lsf(dfg), lsf(retDFG))

0 commit comments

Comments
 (0)