-
-
Notifications
You must be signed in to change notification settings - Fork 209
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
feature extractor for Iterator.next #1765
Comments
I'll work on this |
My weekend is almost over, but still work in progress. I'm currently struggling with IteratorExpectationsSpec.kt. So it seems better to write samples first. |
AtriumError is an AssertionError, we don't mention it in the API as it is an implementation detail. We might as well change to another AssertionError in the future. |
Thanks for your comment.
I see. Then I might have been missing something else. By the way, today I wrote samples for Iterable.next (api-fluent). So, I think I am just misunderstanding something about IteratorExpectationsSpec. |
I finally realized what I have missed. In
Thanks to this comment I realized my mistake. |
Code related feature
However, we also want to show a better error message in case there is not a next
Following the things you need to do:
logic
next
(see ListAssertions.get as a guideline)container.extractFeature...
(see DefaultListAssertions.get)api-fluent
Expect<T>
in iteratorFeatureExtractors.kt (see listFeatureExtractors.kt as a guideline)assertionCreator
-lambda and returnsExpect<E>
(whereE
is the element type inIterator<E>
) in iteratorFeatureExtractors.kt (see listFeatureExtractors.kt as a guideline)@sample
with link to your sample method to the two functions in iteratorExpectations.kt@since 1.3.0
(adapt to current milestone) to KDOC of the two functions in iteratorExpectations.ktapi-infix
Expect<T>
in iteratorExpectations.kt (see listExpectations.kt as a guideline)assertionCreator
-lambda and returnsExpect<E>
(whereE
is the element type inIterator<E>
) in iteratorFeatureExtractors.kt (see listFeatureExtractors.kt as a guideline)@sample
with link to your sample method to the two functions in iteratorExpectations.kt@since 1.3.0
(adapt to current milestone) to KDOC of the two functions in iteratorExpectations.ktYour first contribution?
I'll work on this
if you would like to take this issue over.This way we get the chance to revise the description in case things have changed in the meantime, we might give you additional hints and we can assign the task to you, so that others do not start as well.
(Invite yourself in case you do not have an account yet).
The text was updated successfully, but these errors were encountered: