|
|
|
|
|
by whynotmaybe
58 days ago
|
|
Must be some Mandela effect about some TDD documentation I read a long time ago. If you test math_add(1,2) and it returns 3, you don't know if the code does `return 3` or `return x+y`. It seems I might need to revise my view. |
|
Nowadays I think this would be done with fuzzing/constraint tests, where you define "this relation must hold true" in a more structured way so the framework can choose random values, test more at once, and give better failure messages.