------------------
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 ResultsThe output tells you SolverTest/testBadRealSolution failed. From the Framework
Diagnostic you see the following:Actual Value:
-1 -2
Expected Value:
2 1At this point, you must decide if the error is in quadraticSolver or in your value for
expSolution.Correct ErrorEdit the value of expSolution in testBadRealSolution:expSolution = [-1 -2];Rerun TestsSave SolverTest and rerun only the failed tests.failedTests = quadTests([result1.Failed]);
result2 = run(failedTests)Running SolverTest
.
Done SolverTest33 Unit Testing