Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Perhaps you need to read it a little more closely? For the given function, he has indeed tested all the branches and statements.


Also, it's the simplest thing that can possibly work! (And for very small values of x is also the best possible implementation.)


Even better: it's a correctly-rounded implementation for nearly half of the input space!




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

Search: