Question: Given the following code, which potential test values can be eliminated from the unit tests for this function (select all that apply): 1 2
Given the following code, which potential test values can be eliminated from the unit tests for this function (select all that apply): 1 2 3 4 5 6 7 8 4 null public int calculate(int i) { if (i > 4) { i *= 4; } ** } else { Integer.MIN_VALUE Integer.MAX_VALUE i*= 2 } - return i; Given the following code, which potential test values can be eliminated from the unit tests for this function (select all that apply): 1 2 3 4 5 6 7 8 4 null public int calculate(int i) { if (i > 4) { i *= 4; } ** } else { Integer.MIN_VALUE Integer.MAX_VALUE i*= 2 } - return i;
Step by Step Solution
3.46 Rating (162 Votes )
There are 3 Steps involved in it
The code snippet in the image is a Java function named calculate that takes an integer i as a parameter and then checks if i is greater than 4 If it i... View full answer
Get step-by-step solutions from verified subject matter experts
