|
|
|
|
|
by jeffffff
2119 days ago
|
|
this sounds like a case where no amount of unit testing ever would've found the bug. someone found the bug either through reasoning about the implementation or using formal methods and then wrote a test to demonstrate it. you could spend your entire life writing unit tests for this function and chances are you would never find out there was an issue. i'd say this is more of an argument for formal methods than it is for any approach to testing. |
|
That might not always be possible - but if it is, the test would be based on implementation details.