From: Magnus Jacobsson Date: Wed, 14 Sep 2022 07:29:11 +0000 (+0200) Subject: tests: test_edge_node_overlap_utilities: add support for edge direction X-Git-Tag: 6.0.2~34^2~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f9fab525a46cf4afd8117fd1dc2d7d8390183188;p=graphviz tests: test_edge_node_overlap_utilities: add support for edge direction --- diff --git a/tests/test_edge_node_overlap_utilities.cpp b/tests/test_edge_node_overlap_utilities.cpp index b9bc46926..5b15dea97 100644 --- a/tests/test_edge_node_overlap_utilities.cpp +++ b/tests/test_edge_node_overlap_utilities.cpp @@ -305,12 +305,12 @@ static std::string generate_dot(const graph_options &graph_options) { return fmt::format("digraph g1 {{" " graph [rankdir={}]" " node [penwidth={} shape={} color={} fontname=Courier]" - " edge [penwidth={} color={}]" + " edge [penwidth={} color={} dir={}]" " a -> b" "}}", graph_options.rankdir, graph_options.node_penwidth, graph_options.node_shape, color, - graph_options.edge_penwidth, color); + graph_options.edge_penwidth, color, graph_options.dir); } void test_edge_node_overlap(const graph_options &graph_options, diff --git a/tests/test_edge_node_overlap_utilities.h b/tests/test_edge_node_overlap_utilities.h index 1caa0c353..d101c8c00 100644 --- a/tests/test_edge_node_overlap_utilities.h +++ b/tests/test_edge_node_overlap_utilities.h @@ -28,6 +28,7 @@ struct graph_options { std::string_view rankdir = "TB"; std::string_view node_shape = "polygon"; double node_penwidth = 1; + std::string_view dir = "forward"; double edge_penwidth = 1; };