Hacker News new | past | comments | ask | show | jobs | submit login

> However the ceil function gave the wrong answer for many numbers it was supposed to handle, including odd-ball numbers like ‘one’.

Given all the special and unique features of the number one, I sincerely cannot tell if he's being sarcastic or not.




I believe he's (dramatically) saying that you'd expect someone to have checked that number manually, if not by other means.


Maybe they were like "of course it works for simple cases like 1, let's just test some more difficult numbers".


That's why unit testing is so great.


Because one is the unit number.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: