April 2018
Beginner
536 pages
13h 21m
English
Unit testing refers to the practice of testing certain functions and areas (units) of our code. This gives us the ability to verify that our functions work as expected.
At the beginning of this chapter, we included the most important parts of the application included in the companion source code for this chapter. The source code defined a calculator with support for two operations: pow and add.
The pow operation expects two numbers as its arguments and has two possible execution paths: