3 ms·
Documentation. Tests show the reader what the code is intended to do, and how to work with said code – information that is not always conveyed with the canonica
by randomdata 13y ago
Documentation. Tests show the reader what the code is intended to do, and how to work with said code – information that is not always conveyed with the canonical source. The benefit over other forms of documentation is that it comes with automatic verification that the code works exactly as the documentation describes.