|
|
|
|
|
by StrykerKKD
3644 days ago
|
|
No, I literally mean that you can't prove correctness with tests, because you would need a lot of test cases to prove the simplest function. For example: int addOne(int input) function would need test cases for every number in the int type, which would be 2,147,483,647 * 2 + 1 test case. |
|
IE, a test is another way to explain what the developer of that test cared about, worried about, needed to verify of the code that is exercised.
Also, tests provide anothing built in consumer of the code, and all code with more consumers is better code, purely by surviving the stress.