How can I test a long function in Matlab?
Afficher commentaires plus anciens
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
Réponse acceptée
Plus de réponses (1)
John D'Errico
le 12 Avr 2021
0 votes
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.
Catégories
En savoir plus sur Run Unit Tests dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!