Who tests the tests
The Testmen?
Who tests the tests for the tests
Create tests to test the tests. Create tests to test those. Recurse to infinity
turned out to be a semicolon
The tests wouldn’t even run of that was the issue, pretty sure (depends on the language I suppose)
fun situations can arise when you write , instead of ; For those not in the know, in c++ the comma operator evaluates the left expression, discards the value, then evaluates the right expression and returns the value. if you now have a a situation like this
int i = 0, printf("some message");
i has a completely different value, since it actually uses the return value of printf instead
now you have a group of very specific tests for later debugging
If you use your type system to make invalid states impossible to represent & your functions are pure, there less—maybe nothing—to test, which will save you from this scenario.
You can’t have any bugs if you don’t write any code.
It must be nice to work only with toy cases where this is feasible.
Lmao, I just had something similar
But this does mean, writing tests works.