1 min readMay 31, 2019
Hopefully, the example was deliberate. Instead of all that trouble, I’d just made a simple generic function, which can calculate interest for any number and values of thresholds given specification. It would be waaay simpler than dealing with all those calculateInterestForGreaterThan2000 both in tests and code. Sorry, but I am not convinced by this post.