ocamlgraph icon indicating copy to clipboard operation
ocamlgraph copied to clipboard

Test test_components.ml is bound to fail sometimes

Open OlivierNicole opened this issue 3 years ago • 0 comments

When running dune runtest -p ocamlgraph on version 2.0.0 of this repo (actually using ocamlgraph to test some changes that I made in the compiler), I noticed that tests/test_components.ml had failed.

Looking at it, I can see why: it creates a random undirected graph with 10 vertices and 3 edges, computes its strongly connected components, prints it, and compares the output with some reference file.

I argue that it is strange to make it an “expect” test since it is bound to fail sometimes.

OlivierNicole avatar May 24 '22 14:05 OlivierNicole