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!