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 for 6851 : Uri.Path.Segment can throw from its equals method #6853

Merged

Conversation

mattyjbrown
Copy link
Contributor

Let me know if I've picked the wrong place for the test!

@mattyjbrown mattyjbrown changed the title Fix for https://github.com/http4s/http4s/issues/6851 : Uri.Path.Segment can throw from its equals method Fix for 6851 : Uri.Path.Segment can throw from its equals method Dec 6, 2022
@mergify mergify bot added series/0.23 PRs targeting 0.23.x module:core labels Dec 6, 2022
Copy link
Member

@bplommer bplommer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure if this needs a test?

@mattyjbrown
Copy link
Contributor Author

Not sure if this needs a test?

Yeah I can see that POV, but I came down on the side of "you should add a test for bugs you fix" 🤷‍♂️

Copy link
Member

@danicheg danicheg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤯

Copy link
Contributor

@hamnis hamnis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ouch

@danicheg danicheg merged commit 2c034f6 into http4s:series/0.23 Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module:core series/0.23 PRs targeting 0.23.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Uri.Path.Segment.equals throws a MatchError when passed a parameter of another type
4 participants