test_sanity#

Functions

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).

test_sanity_valid_diagram()

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.