Check Matlab code that is supposed to throw errors or warnings.
You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
Sometimes when testing code, it is desirable to not only make sure that the code executes correctly when it should, but also to check that it throws errors or warning when expected. These simple utilities make it easy to test if the expected alerting behavior takes place.
shoulderror: throws an error if the code executes successfully without error.
shouldwarn: throws an error if the code executes without warning.
shouldalert: throws an error if the code executes without either an error or warning.
Cite As
Sky Sartorius (2026). Alert Checking (https://github.com/sky-s/alert-checking), GitHub. Retrieved .
General Information
- Version 1.0.0 (3.69 KB)
-
View License on GitHub
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
Versions that use the GitHub default branch cannot be downloaded
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0 |
