Test Tools - Utilities for unit tests
Version 1.2 (JASP) 26-Jul-2009
This package is a set of tools that facilitate debugging or writing unit test for MATLAB functions.
disp_value - display the value of an expression
disp_test_title - display a test name
disp_test_name - display a subtest name
disp_num_failures - display number of test failures
check_err - verify an expected error message
check_warn - verify an expected warning message
check_value - compare a test value with an expected value
check_float - specifically checks floating point numbers
set_val - sets, displays variable value without expanding value
time - times a script/function call
timesim - times a Simulink model run
Cite As
Jay St. Pierre (2024). Test Tools - Utilities for unit tests (https://www.mathworks.com/matlabcentral/fileexchange/346-test-tools-utilities-for-unit-tests), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.