-In this case like in many other cases, there's not just a - -2
-single right answer because you can build many test cases that will - -3
-satisfy this test specification. So for example, we could pick value 3 - -4
-for a and value 9 for b. Those satisfy the specification because a - -5
-plus b is equal to 12 and therefore is greater than 0, - -6
-and therefore this is a test case that implements this test specification. - -7
-And in terms of results, what we expect to see is in - -8
-the case of a result greater than 0, the caller should be red, - -9
-and the upper value should be 12. And obviously for this test - -10
-specification, we just need to pick two inputs such that the sum - -11
-of the two inputs is less than 0. So for example, we - -12
-could pick minus 5 and minus 8. The output color in this - -13
-case is going to be blue, and the output value is going to be - -14
-minus 13. So, what we just saw is basically how we can - -15
-go from a piece of code to a set of requirements, which - -16
-are the interesting aspects of the code that we want to exercise. How we - -17
-can satisfy the requirements by finding - -18
-the right test specifications, and then how - -19
-we can initiate the test specifications into actual test cases. And this is - -20
-what we will do in general when doing white books testing. And we'll - -21
-do things likely different way, depending on - -22
-the specific criteria that we are considering. -- cgit 1.4.1