News for hackers. Stuff that matters.
Re:Solving Algorithmic Problems in Python with Pytest (2019) by tmoertel on Saturday December 19, 2020 @11:27AM (#25478431)
When testing solutions to algorithmic problems, it's often useful to use randomized property checking to verify that the solution's expected properties hold for approximately all inputs. The QuickCheck family of testing tools is probably the best known application of this approach. It's also pretty easy to roll your own. Some hand-rolled examples in Python:

https://github.com/tmoertel/practice/blob/master/dailycoding...

https://github.com/tmoertel/practice/blob/master/dailycoding...

https://github.com/tmoertel/practice/blob/master/dailycoding...

Re:Solving Algorithmic Problems in Python with Pytest (2019) by fnord123 on Saturday December 19, 2020 @11:36AM (#25478525)
Re:Solving Algorithmic Problems in Python with Pytest (2019) by sn9 on Saturday December 19, 2020 @11:08PM (#25483777)
For Python, it's basically the tool as far as I can tell.