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 table testing forNone and Double between matcher #372

Merged
merged 1 commit into from
Jun 26, 2018

Conversation

ajalt
Copy link
Contributor

@ajalt ajalt commented Jun 26, 2018

Currently, forNone will never fail. If the callback succeeds, an AssertionError is thrown, but it's immediately caught by the try/catch that's meant to catch failures in the callback.

This PR also fixes the between matcher for Doubles, which was incorrectly passing its tests due to forNone not working.

Currently, `forNone` will never fail. If the callback succeeds, an `AssertionError` is thrown, but it's immediately caught by the try/catch that's meant to catch failures in the callback.

This PR also fixes the `between` matcher, which was passing its tests due to `forNone` not working.
@sksamuel sksamuel merged commit 6572285 into kotest:master Jun 26, 2018
@sksamuel
Copy link
Member

👍

@ajalt ajalt deleted the fix-table-fornone branch June 26, 2018 21:31
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.

2 participants