Question: Suppose you are asked to test the square root function ( double sqrt ( double a ) ) in Java Math library. You do not
Suppose you are asked to test the square root function double sqrtdouble a in Java
Math library. You do not have the source code for the function however the specifications
of the function are available. The specifications of the function as follows:
The function has one input parameter, a double value.
The function returns the correctly rounded positive square root of a double value.
If the argument is NaN or less than zero, then the result is NaN
If the argument is positive infinity, then the result is positive infinity.
If the argument is zero, then the result is the same as the argument.
NaN is a numeric data type value which stands for not a numbereg Double.NaN
Explain why performing exhaustive testing testing with all possible inputs on this
method might not be considered efficient testing and propose an efficient testing
strategy.
Explain how the proposed testing strategy is performed and list the minimum amount
of test inputs required to perform it
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
