News for hackers. Stuff that matters.
Re:The sad state of property-based testing libraries by matklad on Thursday July 04, 2024 @05:25PM (#40878171)
Do you have a model problem which is tricky to shrink?

I implemented a stupid simple shrinker for arbitrary, and I’d love to know a specific example where it fails to shrink in a good way:

https://github.com/matklad/arbtest/blob/0191f93846e9f7e38254...

I know at lest two interesting approaches for making that way smarter, but I don’t yet have a problem where my dumb approach isn’t sufficient.

Re:The sad state of property-based testing libraries by sunshowers on Tuesday July 09, 2024 @02:49PM (#40919484)
I think I'll have to try it out! I'm just dubious about approaches that don't put shrinking front and center.