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

At some point, your test switches from testing the code, to testing the machine the code runs on. That likely happens before 120 days.



Given issues like the intel fdiv bug that may make sense to test if you really want to avoid running into hardware specific bugs.


Maybe, but I'd rather a test suite that's designed to test hardware, rather than overloading some code's unit tests.

I think most unit tests are best served by testing key values- e.g. values before and after any intended behavior change, values that represent min/max possible values, values indicative of typical use.

The unit test can serve as documentation of what the code is intended to do, and meaninglessly invoking every unit test over the range of floats obscures that.

There are certainly cases where all values should be tested, but I don't think that's all cases.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

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

Search: