Re:What if writing tests was a joyful experience?
by davidgrenier on Saturday January 14, 2023 @08:02AM
(#34379996)
In combinatorics the adjusted fibonacci numbers start with 1 instead and is more commonly used as it aligns with many other results. One might want to document in the code, via a test, which sequence is of interest.
This is just an example of course but elegant functions might need to be tested.
Unit testing elegant functions has no value.
(fib is often used as an example. But you asked how to test it.)