================================================================================
Error occurred in rightTriTest/Test3_30_60_90Triangle and it did not run to completion.
Error ID:
'MATLAB:assertion:failed'
Error Details:
Error using rightTriTest (line 31)
Assertion failed.
.
Error occurred in rightTriTest/Test4_SmallAngleApproximation and it did not run to completion.
Error ID:
''
Error Details:
Error using rightTriTest (line 39)
Problem with small angle approximation
.
Done rightTriTest
Failure Summary:
Name Failed Incomplete Reason(s)
rightTriTest/Test3_30_60_90Triangle X X Errored.
rightTriTest/Test4_SmallAngleApproximation X X Errored.
The test for the 30-60-90 triangle and the test for the small-angle approximation fail in
the comparison of floating-point numbers. Typically, when you compare floating-point
values, you specify a tolerance for the comparison. In Test 3 and Test 4, MATLAB throws
an error at the failed assertion and does not complete the test. Therefore, the test is
marked as both Failed and Incomplete.
Write Script-Based Unit Tests