News for hackers. Stuff that matters.
Re:Solving Algorithmic Problems in Python with Pytest (2019) by mlthoughts2018 on Saturday December 19, 2020 @08:49AM (#25477379)
“How do I test all possible equivalent definitions of this function” is probably not practically answerable for this. What if they wrote this?

    def biasedcoin(n, p):
        for answer in answer_key[n][p]:
            yield answer
Or this:

    def biasedcoin(n, p):
        while True:
            mine_bitcoin_on_teachers_computer()

There are no comments on this comment yet.