Carefully describe the process of program testing
Consider two possible definitions for the function unitPrice. One is the
definition given in Display 4.10. The other definition is the same except
that the type cast static_cast(2) is replaced with the constant
2.0; in other words, the line
radius = diameter/static_cast(2);
is replaced with the line
radius = diameter/2.0;
Are these two possible function definitions black-box equivalent?
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here