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

Replace ?-chains with force-unwraps. #137

Merged
merged 1 commit into from
Jan 20, 2016
Merged

Replace ?-chains with force-unwraps. #137

merged 1 commit into from
Jan 20, 2016

Conversation

tcard
Copy link
Contributor

@tcard tcard commented Jan 20, 2016

There is some abuse of ?-chaining in the test code. If we expect a
thing to be there and if not being that the case would mean that
test code (e. g. a helper) is wrong, force-unwrap should be used
instead of silently ignoring this condition with a ?-chain so that
the error is caught from the test framework. The test framework
should only tell us about the code being tested, not about the
code that tests the code being tested.

@tcard
Copy link
Contributor Author

tcard commented Jan 20, 2016

Tests seem to be failing due to what #139 is supposed to fix.

@mattheworiordan
Copy link
Member

Agreed, 👍

There is some abuse of ?-chaining in the test code. If we expect a
thing to be there and if not being that the case would mean that
test code (e. g. a helper) is wrong, force-unwrap should be used
instead of silently ignoring this condition with a ?-chain so that
the error is caught from the test framework. The test framework
should only tell us about the code being tested, not about the
code that tests the code being tested.
@tcard tcard force-pushed the replace-chains-unwrap branch from 4147775 to 0a0488e Compare January 20, 2016 14:39
@ricardopereira
Copy link
Contributor

LGTM

tcard added a commit that referenced this pull request Jan 20, 2016
Replace ?-chains with force-unwraps.
@tcard tcard merged commit 5df6bab into master Jan 20, 2016
@tcard tcard deleted the replace-chains-unwrap branch January 20, 2016 19:02
maratal pushed a commit that referenced this pull request Jul 19, 2023
Spec: add RTP2b1a to clarify edge-case in newness comparison
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants