←back to thread

Unit tests as documentation

(www.thecoder.cafe)
174 points thunderbong | 1 comments | | HN request time: 0.214s | source
1. tdiff ◴[] No.41881106[source]
I doubt anyone who have ever seen complex test fixtures testing complex cases would agree it is better than free-form explanation of intended behaviour.

Human language is just much more dense in terms of amount of conveyed information.