| 1 |
#include <string> |
| 2 |
|
| 3 |
#include <catch2/catch_all.hpp> |
| 4 |
|
| 5 |
#include "test_edge_node_overlap_utilities.h" |
| 6 |
#include "test_utilities.h" |
| 7 |
|
| 8 |
TEST_CASE("Maximum edge node overlap", |
| 9 |
"An edge connected to a node shall not overlap that node too much") { |
| 10 |
|
| 11 |
const graph_options graph_options = { |
| 12 |
.node_shape = "polygon", |
| 13 |
.node_penwidth = 2, |
| 14 |
.edge_penwidth = 2, |
| 15 |
}; |
| 16 |
|
| 17 |
const tc_check_options check_options = { |
| 18 |
.check_max_edge_node_overlap = true, |
| 19 |
.check_min_edge_node_overlap = false, |
| 20 |
.check_max_edge_stem_arrow_overlap = false, |
| 21 |
.check_min_edge_stem_arrow_overlap = false}; |
| 22 |
|
| 23 |
const auto filename_base = AUTO_NAME(); |
| 24 |
|
| 25 |
test_edge_node_overlap(graph_options, check_options, |
| 26 |
{.filename_base = filename_base}); |
| 27 |
} |