Question: (12%) Suppose you are designing test cases (with test data) to test a function called factorial (n) that computes n' = n * (n-1) *

 (12%) Suppose you are designing test cases (with test data) to

(12%) Suppose you are designing test cases (with test data) to test a function called factorial (n) that computes n' = n * (n-1) * (n-2) *?.* 2 * l. We know that factorial (3)-6 and factorial (5)-120. It is possible that factorial function overflows for big integers. Note you may put n-10 and n - 13 in the same test case and give it a name. 7" cases to test esentilly all posible integer 100? Design the cases. (b) (6%) Are there any other test cases you may need? For example, is there something like boundary case, abnormal case etc

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!