-
-
Notifications
You must be signed in to change notification settings - Fork 211
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
Move hasNext() check out of Iterable.all #305
Comments
I'll work on this! |
@tfesenko do you still plan to work on this one? Do you need any help? |
@robstoll , unfortunately, I won't have the time to work on it right now. |
With #931 merged, this seems like a good target to work on. I believe this is the last place still using Can I also suggest that in the failure case when the list is empty, we add an explanatory group explaining the conditions being checked. Similar to the
we see
instead of just
|
@wordhou also think that this is a good next issue and I totally agree, we should still see what went wrong in case the iterable is empty. |
Platform (jvm, js, android):all
Extension (none, kotlin 1.3, jdk8): none
Code related feature
Similar to #299 but for Iterable.none and iterable.all. Following an example:
Moreover, it should re-use the hasNext check instead of an own descriptive assertion
The text was updated successfully, but these errors were encountered: