/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
Unit tests as documentation
(www.thecoder.cafe)
94 points
thunderbong
| 1 comments |
17 Oct 24 17:22 UTC
|
HN request time: 0.2s
|
source
Show context
mihaigalos
◴[
17 Oct 24 18:21 UTC
]
No.
41872231
[source]
▶
>>41871629 (OP)
#
In TDD, u-tests are called "spec". Pretty much sums it up.
replies(2):
>>41872337
#
>>41872778
#
lucianbr
◴[
17 Oct 24 18:31 UTC
]
No.
41872337
[source]
▶
>>41872231
#
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
◴[
18 Oct 24 00:39 UTC
]
No.
41875288
[source]
▶
>>41872337
#
Induction is a valid form of inference.
ID:
GO
↑