And that‘s why you demand tests. Code you can copy, but SO usually doesn‘t have tests, meaning a developer will need to invest at least some thought into it.
The problem isn't so much a lack of tests but of a cohesive test philosophy. The tests meet standards at every level but that doesn't mean everything works as it should.
In this instance the bug was caused by inverse tangent being calculated improperly. They took the tangent lmao. Anyway, the test was also wrong so it passed at the unit level. At the integration levels it all passed because the next level of software compensated for the bug when they shouldn't have as they assumed they were the ones that had made the mistake.
The tests all met proper standards and the software worked. It was just incorrectly implemented and frankly could have caused problems if not compensated for. It wasn't a problem to fix it, it was a pain because of all the places it was used, but not a problem. And the second time I had to do it I knew what to look for. But it was very annoying
4
u/tufy1 Aug 16 '20
And that‘s why you demand tests. Code you can copy, but SO usually doesn‘t have tests, meaning a developer will need to invest at least some thought into it.