C++ · Functions

Testing a function

A function that gives the right answer for the first value you try can still be wrong, and well-chosen tests find out where.