Skip to content

Commit a1da310

Browse files
committed
fix todat test
1 parent a0f5cc9 commit a1da310

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/iifInterfaceTests.jl

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,15 @@ end
2222
#test before anything changes
2323
@testset "Producing Dot Files" begin
2424
global dfg
25-
todotstr = toDot(dfg)
25+
@show todotstr = toDot(dfg)
2626
#TODO consider using a regex, but for now test all orders
2727
todota = todotstr == "graph graphname {\n2 [\"label\"=\"a\",\"shape\"=\"ellipse\",\"fillcolor\"=\"red\",\"color\"=\"red\"]\n2 -- 3\n3 [\"label\"=\"abf1\",\"shape\"=\"box\",\"fillcolor\"=\"blue\",\"color\"=\"blue\"]\n1 [\"label\"=\"b\",\"shape\"=\"ellipse\",\"fillcolor\"=\"red\",\"color\"=\"red\"]\n1 -- 3\n}\n"
2828
todotb = todotstr == "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"
2929
todotc = todotstr == "graph G {\na [color=red, shape=ellipse];\nb [color=red, shape=ellipse];\nabf1 [color=blue, shape=box];\na -- abf1\nb -- abf1\n}\n"
3030
todotd = todotstr == "graph G {\na [color=red, shape=ellipse];\nb [color=red, shape=ellipse];\nabf1 [color=blue, shape=box];\nb -- abf1\na -- abf1\n}\n"
31-
@test (todota || todotb || todotc || todotd)
32-
@test toDotFile(dfg, "something.dot") == nothing
31+
todote = todotstr == "graph G {\na [color=red, shape=ellipse];\nb [color=red, shape=ellipse];\nabf1 [color=blue, shape=box, fontsize=8, fixedsize=false, height=0.1, width=0.1];\na -- abf1\nb -- abf1\n}\n"
32+
@test (todota || todotb || todotc || todotd || todote)
33+
@test toDotFile(dfg, "something.dot") === nothing
3334
Base.rm("something.dot")
3435
end
3536

0 commit comments

Comments
 (0)