3 ms·
Where are the unit tests?
by latchkey 4y ago
Where are the unit tests?
- friedman23 4y agoPeople writing unit tests for internal tools? A lot of companies don't even having tests for production code.
- latchkey 4y agoEspecially yes. A unit test would have caught this instantly. It is code that deals with $'s... something you'd really want to test, since it'll cost the company money. Instead, you've got multiple engineers writing code multiple times (my euphemism for fixing buggy code), which also costs the company money.
- friedman23 4y agoI'm just saying people don't do it in practice.
- lovecg 4y agoOh I’m sure there are unit tests for new func and old func that test them separately just fine. The if statement is probably thought of as a temporary switchover kind of thing.
- fbdab103 4y agoI could believe there were unit tests, but not at a high enough level. new_func input:$25,000, output:$25,000. Test passes.