Files
grapherity/tests/dijkstra.rs
T
warrence 600664acb6 Update tests for Dijkstra's algorithm to test both graph models
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.
2026-05-13 14:02:07 +02:00

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);
}