diff --git a/examples/fuzz_graph.nim b/examples/fuzz_graph.nim index 43b1ca8..c24e0b2 100644 --- a/examples/fuzz_graph.nim +++ b/examples/fuzz_graph.nim @@ -99,6 +99,12 @@ when defined(runFuzzTests) and isMainModule: x.nodes[6].edges.len == 0 and x.nodes[7].edges.len == 0: doAssert false + # Here you could call library functions and check invariants. + # Such as when removing edges, the number of nodes remains the same. + #var x = x + #let oldLen = x.nodes.len + #x.deleteEdge(1, 2) + #doAssert oldLen == x.nodes.len defaultMutator(fuzzTarget)