Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started