English subtitles

← 03-14 Testing Coverage Solution

03-14 Testing Coverage Solution

Get Embed Code
1 Language

Showing Revision 2 created 07/16/2014 by Udacity Robot.

  1. And the key really was simply calling the stats function with two list.
  2. One which had an even number of elements, the other with an odd number of elements and then
  3. furthermore at least one of the list had to not read the degenerate list containing only one element.
  4. So if you do something like what I did here, you'll achieve full statement
  5. coverage and let's just look at that quickly.
  6. So here we can see that out of the 34 statements in the program, 34 will run
  7. and none were missing--so we achieved full statement coverage.