How can I test a long function in Matlab?
이전 댓글 표시
Hello community,
I have to test certain functions and some of them are very long, how can I generate a test that verifies it?
Thank you so much,
Gabriela
채택된 답변
추가 답변 (1개)
John D'Errico
2021년 4월 12일
0 개 추천
Don't test your long function. Because you should be writing SHORT functions. Then you can test each piece, verify it works as designed. And only then put it all together.
카테고리
도움말 센터 및 File Exchange에서 Run Unit Tests에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!