-
Notifications
You must be signed in to change notification settings - Fork 170
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
(#1230) ListIteratorOf can be mutable and immutable, depending on origin #1231
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -152,7 +152,6 @@ public void addThrowsErrorForImmutableListIterator() { | |
return 0; | ||
}, | ||
new Throws<>( | ||
"Iterator is read-only and doesn't allow adding items", | ||
UnsupportedOperationException.class | ||
) | ||
).affirm(); | ||
|
@@ -167,7 +166,6 @@ public void removeThrowsErrorForImmutableListIterator() { | |
return 0; | ||
}, | ||
new Throws<>( | ||
"Iterator is read-only and doesn't allow removing items", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @fanifieiev why remove those parts of the tests? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @victornoel If you look at the test and the following stacktrace, you can see that the exception is thrown by the collection returned by There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @fanifieiev I better understand, thank you, but why is There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @victornoel I did not catch your concern. The ListIteratorOf I changed is not based on the immutable version of There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm talking about There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @fanifieiev I think we spent enough time on this PR, please add todos and let ARC validate them by merging. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @fanifieiev one todo is enough, no need to multiplicate them btw :) There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @victornoel There is one thing that concerns me. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @fanifieiev that's why you should leave a todo and let the next job performer think about this problem. Maybe we will conclude that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @victornoel Ok, I have just pushed one more commit with 'todo'. Please have a look. |
||
UnsupportedOperationException.class | ||
) | ||
).affirm(); | ||
|
@@ -182,7 +180,6 @@ public void setThrowsErrorForImmutableListIterator() { | |
return 0; | ||
}, | ||
new Throws<>( | ||
"Iterator is read-only and doesn't allow rewriting items", | ||
UnsupportedOperationException.class | ||
) | ||
).affirm(); | ||
|
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.
@fanifieiev why is
ListIteratorOf
tested inListEnvelopeTest
? I think those tests should be in their own file (and removed from here).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.
@victornoel I agree with your concern, I just left them where they were previously.
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.
@fanifieiev so please move them in their own file to properly identify what is being tested