-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
DocTests for OptionT #4038
DocTests for OptionT #4038
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks. I ❤️ doctests.
Since most of these are overrides, are we going to lose summaries of what they do for just "Example"? I like examples, but I wonder if there should be a first sentence explaining map
, filter
, etc. Have we added doctests like this for other data types as precedent?
* scala> import cats.data.OptionT | ||
* | ||
* scala> val optionT: OptionT[List, Int] = OptionT(List(Some(2), None, Some(414), None, None)) | ||
* scala> optionT.filter(el => (el % 2 ==0 )) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No big deal, but the whitespace on these is a bit weird:
* scala> optionT.filter(el => (el % 2 ==0 )) | |
* scala> optionT.filter(el => (el % 2 == 0)) |
@rossabaker thank you for the review. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Thanks!
looks like the collect examples don't yet work. |
Oops, I overlooked the build failure.
|
Sorry for the delay. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the touch-ups!
the job seemed to have a transient failure on future tests. |
#2479