Test program for findloop.c.

Thanks to Amir Livne Bar-on for contributing this. It's about to be
used to build confidence in a rewrite of findloop.c in a followup
commit. I also expect that it will be useful later on for testing
other graph algorithms.

This patch is not Amir's original. I've polished the code in various
small ways. The biggest change is that when it outputs a failing
graph, the graph is printed in the form of an Untangle game id, in the
hope that that will make it possible to visualise easily while
debugging the problem!
This commit is contained in:
Simon Tatham
2024-09-12 20:38:32 +01:00
parent 2ca58c1de1
commit c3800c59d5
2 changed files with 226 additions and 0 deletions

View File

@ -1,5 +1,6 @@
cliprogram(combi-test combi-test.c)
cliprogram(divvy-test divvy-test.c)
cliprogram(findloop-test findloop-test.c)
cliprogram(hatgen hatgen.c CORE_LIB COMPILE_DEFINITIONS TEST_HAT)
cliprogram(hat-test hat-test.c)
cliprogram(latin-test latin-test.c)