-
Notifications
You must be signed in to change notification settings - Fork 451
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
More Either tests #2398
More Either tests #2398
Conversation
Gen.int(), | ||
Gen.int(), | ||
Gen.int() | ||
) { a: Int, b: Int, c: Int -> |
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.
Gen.list
is also possible, but I thought that showing list of Right
is more explicit.
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.
Thank you so much @a-ivanov and welcome to Arrow! 🙏
@@ -323,3 +454,12 @@ private suspend fun <A> throwException( | |||
a: A | |||
): Either<Throwable, Any> = | |||
throw RuntimeException("An Exception is thrown while handling the result of the supplied function.") | |||
|
|||
private fun forAllSmallInt(fn: PropertyContext.(a: Int) -> Boolean) = |
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.
I believe we have some other utilities like these somewhere. Perhaps these functions should be moved there and made public or internal.
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.
Awesome @a-ivanov, looks great! Thank you so much for the contribution 👏 👏 👏 And welcome to Arrow with your first contribution 🎉 🎉 🎉
Welcome to Arrow @a-ivanov !! 🎉 |
And thank you so much!! 🙌 |
Thanks everyone for the warm welcome! Hope not to disappoint in future and contribute more) |
Hi everyone!
My first PR. Improving Either test coverage.