Re:What if writing tests was a joyful experience?
by karma_fountain on Thursday January 12, 2023 @08:12AM
(#34352958)
Fib(x)=0 does satisfy this property though.
[ Parent
| on HN ]
Re:What if writing tests was a joyful experience?
by karmakaze on Thursday January 12, 2023 @03:01PM
(#34359475)
A full definition would include Fib(0) = 0, Fib(1) = 1 or if you prefer 1, 1.
Re:What if writing tests was a joyful experience?
by quickthrower2 on Thursday January 12, 2023 @06:37PM
(#34361858)
You need to manually check the first 2 values in a seperate test.