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

Fix a bug where a step that _returns_ an exception object is reported… #64

Merged
merged 3 commits into from Aug 22, 2023

Conversation

brandonvin
Copy link
Contributor

… as having thrown an unhandled exception.

PR #59 introduced a bug where a step that returns an exception object fails. An example of this is a test function whose last expresssion is an assertion that something is thrown:

(is (thrown? Exception ,,,))

Fixed by distinguishing thrown vs. returned exceptions and adding unit tests.

… as having thrown an unhandled exception.

PR #59 introduced a bug where a step that _returns_ an exception
object fails. An example of this is a test function
whose last expresssion is an assertion that something is thrown:
```
(is (thrown? Exception ,,,))
```

Fixed by distinguishing thrown vs. returned exceptions
and adding unit tests.
@brandonvin brandonvin marked this pull request as ready for review August 22, 2023 17:33
@brandonvin brandonvin requested a review from a team August 22, 2023 17:33
@brandonvin brandonvin merged commit 850d743 into main Aug 22, 2023
2 checks passed
@brandonvin brandonvin deleted the fix-tests-that-return-exceptions branch August 22, 2023 17:41
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.

None yet

2 participants