5 ms·
If the function was truly linear having a long function wouldn't be so bad. But it actually isn't, the example contains multiple branches! Will people bother t
by matsemann 3y ago
If the function was truly linear having a long function wouldn't be so bad. But it actually isn't, the example contains multiple branches!
Will people bother testing all of them? Or will they write a single test, pass in a pizza and just glance at it actually working? My guess is the latter, as testing multiple branches from outside is often tedious, vs testing smaller specialized functions.