How can I test a long function in Matlab?
Mostra commenti meno recenti
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
Risposta accettata
Più risposte (1)
John D'Errico
il 12 Apr 2021
0 voti
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.
Categorie
Scopri di più su Run Unit Tests in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!