Skip to content

Commit 41ef532

Browse files
committed
fix #419
1 parent c534ba3 commit 41ef532

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/testBlocks.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1190,7 +1190,10 @@ function ProducingDotFiles(testDFGAPI,
11901190
addFactor!(dotdfg, [v1, v2], f1)
11911191
#NOTE hardcoded toDot will have different results so test LightGraphs seperately
11921192
if testDFGAPI <: LightDFG || testDFGAPI <: CloudGraphsDFG
1193-
@test toDot(dotdfg) == "graph G {\na [color=red, shape=ellipse];\nb [color=red, shape=ellipse];\nabf1 [color=blue, shape=box];\na -- abf1\nb -- abf1\n}\n"
1193+
todotstr = toDot(dotdfg)
1194+
todota = todotstr == "graph G {\na [color=red, shape=ellipse];\nb [color=red, shape=ellipse];\nabf1 [color=blue, shape=box];\na -- abf1\nb -- abf1\n}\n"
1195+
todotb = todotstr == "graph G {\na [color=red, shape=ellipse];\nb [color=red, shape=ellipse];\nabf1 [color=blue, shape=box];\nb -- abf1\na -- abf1\n}\n"
1196+
@test (todota || todotb)
11941197
else
11951198
@test toDot(dotdfg) == "graph graphname {\n2 [\"label\"=\"b\",\"shape\"=\"ellipse\",\"fillcolor\"=\"red\",\"color\"=\"red\"]\n2 -- 3\n3 [\"label\"=\"abf1\",\"shape\"=\"box\",\"fillcolor\"=\"blue\",\"color\"=\"blue\"]\n1 [\"label\"=\"a\",\"shape\"=\"ellipse\",\"fillcolor\"=\"red\",\"color\"=\"red\"]\n1 -- 3\n}\n"
11961199
end

0 commit comments

Comments
 (0)