-To satisfy our first requirements, we need to find an - -2
-input that causes the execution of this statement. Because this statement - -3
-is executed only when result is greater than zero, our - -4
-test requirement is that a plus b must be greater than - -5
-0. When this is satisfied, this statement is executed therefore - -6
-any test case that implements this specification will cause the execution - -7
-of this statement. Similarly if we want to cover this statement - -8
-which is our second requirement we need to have a result - -9
-that is less than 0. Again, the result is equal - -10
-to a plus b, so all we need to do - -11
-is find the test case such that a plus b - -12
-is less than 0. So this is pretty straight forward. -- cgit 1.4.1