| 1 |
#include <format> |
| 2 |
#include <iostream> |
| 3 |
#include <string> |
| 4 |
|
| 5 |
#include <catch2/catch_all.hpp> |
| 6 |
|
| 7 |
#include "test_edge_node_overlap_utilities.h" |
| 8 |
#include "test_utilities.h" |
| 9 |
|
| 10 |
TEST_CASE("Overlap all node shapes", |
| 11 |
"Test that an edge connected to a node touches that node and does " |
| 12 |
"not overlap it too much, regardless of the node shape") { |
| 13 |
|
| 14 |
const auto shape = GENERATE(from_range(all_node_shapes)); |
| 15 |
INFO("Node shape: " << shape); |
| 16 |
|
| 17 |
const graph_options graph_options = { |
| 18 |
.node_shape = shape, |
| 19 |
.node_penwidth = 2, |
| 20 |
.edge_penwidth = 2, |
| 21 |
}; |
| 22 |
|
| 23 |
const auto filename_base = std::format("{}_{}", AUTO_NAME(), shape); |
| 24 |
|
| 25 |
test_edge_node_overlap(graph_options, {}, {.filename_base = filename_base}); |
| 26 |
} |