Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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 sqrt(double 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 number(e.g. Double.NaN)
1. 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.
2. 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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke, David Auer, Scott Vandenberg, Robert Yoder

9th Edition

0135188148, 978-0135188149, 9781642087611

More Books

Students also viewed these Databases questions

Question

Explain the factors that influence peoples values.

Answered: 1 week ago

Question

What is management growth? What are its factors

Answered: 1 week ago