Skip to content
Snippets Groups Projects

Make the SCC unit test stricter.

Merged Matt Wala requested to merge better-scc-test into master
1 file
+ 8
2
Compare changes
  • Side-by-side
  • Inline
+ 8
2
@@ -60,8 +60,14 @@ def test_compute_sccs():
return result + [node]
for scc in sccs:
result = visit(scc[0])
assert set(result) == set(scc), (set(result), set(scc))
scc = set(scc)
assert not scc & visited
# Check that starting from each element of the SCC results
# in the same set of reachable nodes.
for scc_root in scc:
visited.difference_update(scc)
result = visit(scc_root)
assert set(result) == scc, (set(result), scc)
for nnodes in range(10, 20):
for i in range(40):
Loading