CSC 4110 Lecture Notes - Lecture 23: Savings Account, Equivalence Partitioning
Document Summary
Csc 4110 lecture 23: path based testing. I do the loop twice not taking the if first and then taking it the second time. I do the loop taking the if both times. I do the loop once and with the if. Example: path-based testing: draw the cfg, paths. [1, 2, 3, 4, 6, 7, 2, 9] -> loop 1 time with first if true and second if false, third if false. [1, 2, 3, 4, 6, 8, 2, 9] -> loop 1 time with first if true and second if false, third if false, fourth if false. If one condition in a partition works, we assume all of the conditions in that partition will work, and so there is little point in testing any of these others. Similarly, if one of the conditions in a partition does not work, then we assume that none of the conditions in that partition will work.