Alert Checking

Check Matlab code that is supposed to throw errors or warnings.
5 Downloads
Aktualisiert 26. Apr 2021

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.

Zitieren als

Sky Sartorius (2024). Alert Checking (https://github.com/sky-s/alert-checking), GitHub. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2021a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Versionen, die den GitHub-Standardzweig verwenden, können nicht heruntergeladen werden

Version Veröffentlicht Versionshinweise
1.0.0

Um Probleme in diesem GitHub Add-On anzuzeigen oder zu melden, besuchen Sie das GitHub Repository.
Um Probleme in diesem GitHub Add-On anzuzeigen oder zu melden, besuchen Sie das GitHub Repository.