600664acb6
Use the already established macro pattern, move actual tests to a new file in src/testing. Use the make_test_graph() function from the graph topology tests instead of duplicating it for the Dijkstra tests.
16 lines
433 B
Rust
16 lines
433 B
Rust
mod append_graph_tests {
|
|
use grapherity::models::append_graph::AppendGraph;
|
|
use grapherity::traits::GraphTopology;
|
|
|
|
grapherity::graph_topology_test_fixtures!(AppendGraph);
|
|
grapherity::dijkstra_tests!(AppendGraph);
|
|
}
|
|
|
|
mod graph_tests {
|
|
use grapherity::models::graph::Graph;
|
|
use grapherity::traits::GraphTopology;
|
|
|
|
grapherity::graph_topology_test_fixtures!(Graph);
|
|
grapherity::dijkstra_tests!(Graph);
|
|
}
|