-
Notifications
You must be signed in to change notification settings - Fork 94
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
Fix removeAt #884
Fix removeAt #884
Conversation
dea00fb
to
805ac44
Compare
Pull Request Test Coverage Report for Build 2993418403
💛 - Coveralls |
Pull Request Test Coverage Report for Build 2999512875
💛 - Coveralls |
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.
This may be out of scope, but should we implement all the missing API for list?
As far as I can tell, we're lacking:
contains
set length
-> should throwremoveWhere
retainWhere
removeLast
removeRange
replaceRange
These are implemented by |
Isn't |
Yes. I have implemented I have also added tests for:
|
Length setter now truncates list, if newLength is less than current length. Otherwise nothing happens. Also removeRange implemented on top of removeAt as an optimization, since ListMixins implementation does a lot of moving that is not needed by realm.
The following methods are tested: * contains * set length -> truncates if new length is smaller * removeWhere * retainWhere * removeLast * removeRange * replaceRange
606f13b
to
320412e
Compare
Apparently we never wired up and tested
removeAt
.This fixes #883