Comment by poszlem
3 years ago
"In most testing frameworks I’ve used, even the simplest assertions require a surprising amount of toil. Suppose you’re writing a test for a fibonacci function. You start writing assert fibonacci(15) == ... and already you’re forced to think. What does fibonacci(15) equal?"
You need to know what you expect the program to do before writing a test verifying that it does it, no? I don't understand what the author is trying to say here.
Maybe that coding is sometimes used to figure out stuff you yourself do not know ffs. I understand your point, but what we do as SWEs is the secondary function of coding.