------------------
Stack Information:
------------------
In C:\work\SolverTest.m (SolverTest.testBadRealSolution) at 19
================================================================================
.
Done SolverTest
__________
Failure Summary:
Name Failed Incomplete Reason(s)
=============================================================================
SolverTest/testBadRealSolution X Failed by verification.
Analyze Results
The output tells you SolverTest/testBadRealSolution failed. From the Framework
Diagnostic you see the following:
Actual Value:
-1 -2
Expected Value:
2 1
At this point, you must decide if the error is in quadraticSolver or in your value for
expSolution.
Correct Error
Edit the value of expSolution in testBadRealSolution:
expSolution = [-1 -2];
Rerun Tests
Save SolverTest and rerun only the failed tests.
failedTests = quadTests([result1.Failed]);
result2 = run(failedTests)
Running SolverTest
.
Done SolverTest
33 Unit Testing