Hacker News new | ask | show | jobs
by smartaz42 1700 days ago
Hmm, isn't square normally x*x?
3 comments

Mr. Bright is just using TDD. The ‘square’ function works for 2. Next he’ll generalize it to work for more values. Tests aren’t shown. ;)
I tested it, it worked for the one and only test case, therefore it was correct :-)
Walter actually retired years ago and replaced himself with an AI. Every now and again there are bugs, move along.