←back to thread

Unit tests as documentation

(www.thecoder.cafe)
94 points thunderbong | 1 comments | | HN request time: 0.2s | source
Show context
mihaigalos ◴[] No.41872231[source]
In TDD, u-tests are called "spec". Pretty much sums it up.
replies(2): >>41872337 #>>41872778 #
lucianbr ◴[] No.41872337[source]
So again, any inputs outside of those exemplified in unit tests are unspecified behaviour? How would this work for mathematical operators for example?
replies(2): >>41872555 #>>41875288 #
1. samatman ◴[] No.41875288[source]
Induction is a valid form of inference.