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

More Either tests #2398

Merged
merged 6 commits into from
May 12, 2021
Merged

More Either tests #2398

merged 6 commits into from
May 12, 2021

Conversation

a-ivanov
Copy link
Contributor

Hi everyone!

My first PR. Improving Either test coverage.

Gen.int(),
Gen.int(),
Gen.int()
) { a: Int, b: Int, c: Int ->
Copy link
Contributor Author

@a-ivanov a-ivanov May 10, 2021

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.

Copy link
Member

@raulraja raulraja left a 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) =
Copy link
Member

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.

@raulraja raulraja requested a review from a team May 10, 2021 21:02
Copy link
Member

@nomisRev nomisRev left a 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 🎉 🎉 🎉

@rachelcarmena rachelcarmena merged commit 63e1964 into arrow-kt:main May 12, 2021
@rachelcarmena
Copy link
Member

Welcome to Arrow @a-ivanov !! 🎉

@rachelcarmena
Copy link
Member

And thank you so much!! 🙌

@a-ivanov
Copy link
Contributor Author

a-ivanov commented May 12, 2021

Thanks everyone for the warm welcome! Hope not to disappoint in future and contribute more)

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.

4 participants