Will self-accept. Note that propResolutionsOrderIndependent now fails with
larger values for -q (you typically need -q=10000 to find the more subtle
bugs). I will send a fix separately, since it depends on semantic changes
that may require discussion.
2 patches for repository http://darcs.net/screened:
patch f77ba444a977df49684edbac69f473caf6876757
Author: Ben Franksen <ben.franksen@online.de>
Date: Sat Jun 3 20:08:45 CEST 2023
* fix a (serious) bug in permutationsRL
It always returned an empty list. Thankfully it wasn't used in darcs proper.
However, two RepoPatch tests are affected (propResolutionsOrderIndependent,
propResolutionsDontConflict) with the result that they never tested anything!
patch 946395e709aa45208f103f23dcc433e81461bd52
Author: Ben Franksen <ben.franksen@online.de>
Date: Sat Jun 3 21:31:20 CEST 2023
* fix propConsistentReorderings and propResolutionsOrderIndependent
After fixing permutationsRL it became obvious that propConsistentReorderings
is completely wrong: it succeeded when it should have failed and vice versa.
To guard against regressions, we now call error if permutationsRL returns an
empty list and reject the test case if it is a singleton.
In propResolutionsOrderIndependent we now compare the resolutions before
mangling. This more general and also more reliable, since mangling can fail
if not all prims involved in the resolution are hunks. Note that we must use
order-independent equality for the alternatives.
Attachments
|