How can I test a long function in Matlab?
Mostrar comentarios más antiguos
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
Respuesta aceptada
Más respuestas (1)
John D'Errico
el 12 de Abr. de 2021
0 votos
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.
Categorías
Más información sobre Run Unit Tests en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!