Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
smartaz42
· 5y ago · 0 comments
Hmm, isn't square normally x*x?
Comments
[–]
WalterGR
5y ago
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. ;)
[–]
WalterBright
5y ago
I tested it, it worked for the one and only test case, therefore it was correct :-)
[–]
mhh__
5y ago
Walter actually retired years ago and replaced himself with an AI. Every now and again there are bugs, move along.