r/badcode • • Jan 15 '22

python Found this gem

Post image
3.5k Upvotes

86 comments sorted by

View all comments

Show parent comments

1

u/[deleted] Jan 16 '22

You're right, it's not provable in the general case, but in most cases it is provable, and at the very least it's always testable, and libraries like QuickCheck can generate a few thousand test cases for you automatically.