News for hackers. Stuff that matters.
Re:You can use C-Reduce for any language by eru on Wednesday November 27, 2024 @09:36PM (#42261905)
Yes, most property based testing libraries do this.
Re:You can use C-Reduce for any language by pfdietz on Wednesday November 27, 2024 @10:16PM (#42262103)
Hypothesis in particular has a very clever way to do test reduction. The key problem is that if your test generator is enforcing some constraint on the input, it's not necessarily the case that naive pruning will preserve the constraint. Hypothesis has a fairly general way of enforcing that the generated test input continues to satisfy constraints.
Re:You can use C-Reduce for any language by eru on Thursday November 28, 2024 @01:04AM (#42262837)
Yes, Hypothesis is great. And 'shrinkray' mentioned elsewhere in the comments here seems to be by the same author.