Skip to content
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

Add test for handler-case and :no-error #13

Open
NoahTheDuke opened this issue May 3, 2021 · 4 comments
Open

Add test for handler-case and :no-error #13

NoahTheDuke opened this issue May 3, 2021 · 4 comments

Comments

@NoahTheDuke
Copy link

There is no test for handler-case when :no-error is defined and an error is thrown, demonstrating that the :no-error handler is not executed. Example from the repl:

CL-USER> (let ((a nil))
           (handler-case (error "foo")
             (error () (setq a (cons "error" a)))
             (:no-error () (setq a (cons "no error" a))))
           a)
("error")

(Found in farolero#8)

@NoahTheDuke
Copy link
Author

There's also no test for if there are two or more :no-error branches.

@NoahTheDuke
Copy link
Author

Ping @phoe

@phoe
Copy link
Owner

phoe commented May 13, 2021 via email

@NoahTheDuke
Copy link
Author

No worries at all, this is very low importance, haha. I'll see if I can get something working!

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

No branches or pull requests

2 participants