3 ms·
There's a saying that since nobody tests the tests, they must be trivially correct. That's why they came up with the Arrange-Act-Assert pattern. My favorite k
by torginus 1y ago
There's a saying that since nobody tests the tests, they must be trivially correct.
That's why they came up with the Arrange-Act-Assert pattern.
My favorite kind of unit test nowadays is when you store known input-output pairs and validate the code on them. It's easy to test corner cases and see that the output works as desired.
- 01HNNWZ0MV43FF 1y ago"Golden snapshot testing"