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

remove, removeOne and splice methods & tests #7

Merged
merged 4 commits into from
Jul 26, 2017

Conversation

noevents
Copy link
Contributor

No description provided.

@noevents noevents mentioned this pull request Jun 27, 2017
@Salakar
Copy link
Member

Salakar commented Jun 30, 2017

Would you mind sorting the linting issues if possible please, the ones listed under index.js header here: https://www.codacy.com/app/mike-diarmid/denque/pullRequest?prid=737043 - You can ignore the complexity ones (unless you can get around them).

Happy to merge today after the changes - will do a release also.

@noevents
Copy link
Contributor Author

@Salakar Can you merge pr now?

@Salakar Salakar merged commit 5124904 into invertase:master Jul 26, 2017
}
if (this._head === this._tail) return void 0;
if (i > size || i < -size) return void 0;
if (i === size && count != 0) return void 0;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not entirely sure what this line is trying to do? Could you clarify - your PR is missing quite a bit of coverage so i'm trying to bring it back up to 99%~

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't release until then

if(count === 0){
removed = [];
if(i != size){
this._tail = (i - 1 + len) & this._capacityMask;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This line is also missing coverage

@Salakar
Copy link
Member

Salakar commented Jul 26, 2017

I've pushed up a few changes to your PR, if you could finish the rest from my review above that'd be great, thanks

@noevents
Copy link
Contributor Author

Thanks for review!
I've fixed coverage and piece of code from this review: #7 (review)

Without line from here: #7 (review)
node will throw RangeError

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.

2 participants