-White box testing, in general, and coverage criteria in particular, involve some - -2
-subtle concepts, so before I conclude this lesson, I want to have a - -3
-few more quizzes to make sure that we all understand these concepts. - -4
-The first one involves a very simple piece of code, a straight line - -5
-of code, three statements, in which we simply read an integer and - -6
-then prints 10 divided by the value of that integer minus 3. Now, - -7
-let's imagine that we have a test where there consists of three - -8
-test cases for this code, and what I'm showing in the test cases - -9
-is the input and the expected output. So for the first one, - -10
-the input is 1, and I expect the output to be minus 5. - -11
-For the second one, the input is minus 1, I'm expecting to - -12
-have 2.5. And for the third one, the input is 0, and I'm - -13
-expecting to have minus 3.3333 as the result. Now the first question - -14
-I want to ask, is if we considered this test suite, and we - -15
-run it on the code, does it achieve path coverage? And remember - -16
-that path coverage is one of the strongest coverage criteria that we saw. -- cgit 1.4.1