If you can't read please download the document
Upload
richie-cotton
View
1.853
Download
0
Embed Size (px)
DESCRIPTION
The case for using a testing framework to make your software robust, with a simple example in MATLAB.
Citation preview
2. Our goal: write a function to calculate the length of the hypotenuse of a right-angled triangle from the other two sides 3. 4. 5. 6.
7. 8.
9. 10. 11.
12. 13. 14.
15. We need to do each test lots of times.
16. 17.
18.
19. A suite function that runs some or all of the tests. 20.
21. A suite function that runs some or all of the tests. 22. Some utility functions for handling errors and displaying results. 23. 24. 25. 26.
27.
28. If we use a testing framework, then thorough testing neednt be onerous. 29.
30. If we use a testing framework, then thorough testing neednt be onerous.
31.