Skip to content

Commit 94c0935

Browse files
committed
Cleaning up tests
1 parent 13af310 commit 94c0935

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/runtests.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,11 +92,11 @@ end
9292
# Subgraphs
9393
dfgSubgraph = getSubgraphAroundNode(dfg, verts[1], 2)
9494
# Only returns x1 and x2
95-
@test all([v in [:x1, :x1x2f1, :x2] for v in map(n -> n.label, [ls(dfgSubgraph)..., lsf(dfgSubgraph)...])])
95+
@test setdiff([:x1, :x1x2f1, :x2], map(n -> n.label, [ls(dfgSubgraph)..., lsf(dfgSubgraph)...])) == []
9696
# Test include orphan factorsVoid
9797
dfgSubgraph = getSubgraphAroundNode(dfg, verts[1], 1, true)
98-
@test all([v in [:x1, :x1x2f1] for v in map(n -> n.label, [ls(dfgSubgraph)..., lsf(dfgSubgraph)...])])
98+
@test setdiff([:x1, :x1x2f1], map(n -> n.label, [ls(dfgSubgraph)..., lsf(dfgSubgraph)...])) == []
9999
# Test adding to the dfg
100100
dfgSubgraph = getSubgraphAroundNode(dfg, verts[1], 2, true, dfgSubgraph)
101-
@test all([v in [:x1, :x1x2f1, :x2] for v in map(n -> n.label, [ls(dfgSubgraph)..., lsf(dfgSubgraph)...])])
101+
@test setdiff([:x1, :x1x2f1, :x2], map(n -> n.label, [ls(dfgSubgraph)..., lsf(dfgSubgraph)...])) == []
102102
end

0 commit comments

Comments
 (0)