Skip to content

Add test for calling error() without message #58735

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

nilesh646
Copy link
Contributor

This adds a test for calling error() without a message to ensure it throws a default ErrorException. This increases coverage for base/error.jl.

@nilesh646
Copy link
Contributor Author

Thank you for the feedback! I've updated the test to check the exact error message using sprint(showerror, e) and confirmed that it passes locally. Please let me know if any further changes are needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants