test_sanity#
Functions
Adding a vertex with unassigned endpoints should trigger a 'None endpoint' error. |
|
An oriented diagram must have opposite directions on each arc (Out->In or In->Out). |
|
A known-good planar diagram should pass sanity_check. |
- test_sanity_valid_diagram()#
A known-good planar diagram should pass sanity_check.
- test_sanity_raises_on_none_endpoints()#
Adding a vertex with unassigned endpoints should trigger a ‘None endpoint’ error.
- test_sanity_raises_on_oriented_arc_with_same_direction()#
An oriented diagram must have opposite directions on each arc (Out->In or In->Out). Force an invalid arc with the same direction on both ends and expect an error.