Tolerance use in verifyEqual for unit tests
Mostrar comentarios más antiguos
Hello, I am having a problem when defining a tolerance to be checked while using the verifyEqual function for a unit test. My code has a line that's similar to the following:
verifyEqual(testCase, 0.3589, 0.3588, "AbsTol", 0.0001)
The condition doesn't seem to go throguh, in fact, the code stops there with an error message. Can anyone help with this?
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Hypothesis 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!