Test cases
Task 1
section [krok4] of the 9.2.2 without table 9.4
Defining test cases. We must provide such input data that all branches are covered. Lets consider the input case T = [5, 3]. For this array, the program will follow the patch p = B1 - B2 - B4 - B5 - B6 - B8 - B7 - B9 - B3 - B2 - end
Task 2
Table 9.4 and source code of the test program