2 ms·
Only a few programming languages have a facility to render that second assertion in a human readable way (python surprised me with this). Most C influenced lang
by hinkley 4y ago
Only a few programming languages have a facility to render that second assertion in a human readable way (python surprised me with this). Most C influenced languages will just present you with “assertion failed” or “expected true to be false” which means nothing. Test failure messages should be actionable, and that action is not, “read the test to see what went wrong”.