Open Voultapher opened 6 months ago
Hi, I should definitely check out your collection. I'm not sure that "stress testing" is particularly a goal for misfortunate, but it would be good to have something more interesting in terms of Ord than what's provided now. I'm going to leave this issue open to remind me to check back into this when I have more time.
I added two more sophisticated implementations of Ord, though they're nothing close to the (thank you for your hard work) tests you wrote for the sorts you've worked on.
Misfortunate 1.3.0 now has Echo
Hi, I've written at length about the various safety aspects a sort implementation can get wrong. One of the things I test for is Ord violation. Over time I've grown a collection of patterns that can stress test code that interacts with comparisons. Looking at the code of misfortunate, it seems only basic all equal, reverse etc. are implemented. In my testing I've found such simple patterns to bypass most of the interesting code, especially the streak and low sample rate ones, managed to reach interesting program states and uncovered tricky bugs.