News for hackers. Stuff that matters.
Re:Hypothesis: Property-Based Testing for Python by travisjungroth on Wednesday November 05, 2025 @01:42PM (#45826305)
Just use Counter and if the objects aren’t hashable, use the count of IDs. Grab this before calling the function, in case the function is destructive. Check it against the output.

Add in checking each item is less than or equal to its successor and you have the fundamental sort properties. You might have more, like stability.

There are no comments on this comment yet.