Skip to content

test: Add DirectedGraph Test macro#947

Open
RaoulLuque wants to merge 5 commits intomasterfrom
rl/add_trait_test_macro
Open

test: Add DirectedGraph Test macro#947
RaoulLuque wants to merge 5 commits intomasterfrom
rl/add_trait_test_macro

Conversation

@RaoulLuque
Copy link
Member

This PR implements a macro that can be used with a Graph implementing the new DirectedGraph trait, to automatically generate a set of tests, which will test the correctness / reasonableness of each method in the DirectedGraph trait.

Such a macro for UndirectedGraph should also be created, but it seemed sensible to start with either first and agree on the details for one first and then copy the tests over for UndirectedGraph, as the trait methods are a strict subset anyways.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant