verify code by running tests -凯发k8网页登录
in this step, you verify matlab® code by running tests and viewing the test results using the matlab test manager.
open the matlabshortestpath
project.
openproject("matlabshortestpath");
run tests and view results
open the matlab test manager.
matlabtestmanager
run all tests in the project by clicking the run button.
the test tdemosmoketest/demoshouldnotwarn
fails.
fixed failed test
view the failure diagnostic by clicking the hyperlink in the diagnostic column.
navigate to the source code that errored by clicking the first hyperlink in the failure diagnostic.
the statement on line 11 is incomplete. complete the statement by adding a parenthesis, then re-run the test.
all tests pass.