-
Notifications
You must be signed in to change notification settings - Fork 29.8k
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
test: fix order of arguments in assert.strictEqual #24145
Conversation
assert.strictEqual(0, bufferString.lastIndexOf('a man a plan a canal panama')); | ||
assert.strictEqual(bufferString.lastIndexOf('canal'), 15); | ||
assert.strictEqual(bufferString.lastIndexOf('panama'), 21); | ||
assert.strictEqual(bufferString.lastIndexOf('a man a plan a canal panama'), 0); | ||
assert.strictEqual(-1, bufferString.lastIndexOf('a man a plan a canal mexico')); | ||
assert.strictEqual(-1, bufferString | ||
.lastIndexOf('a man a plan a canal mexico city')); | ||
assert.strictEqual(-1, bufferString.lastIndexOf(Buffer.from('a'.repeat(1000)))); |
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.
just wondering why some of these were left behind? I guess those can also follow the same change?
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.
That was task given to me by @BridgeAR which specified the exact line numbers to change. Maybe he can expand upon why he chose them?
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.
I was just checking whether there is any reason that is unknown to me. no worries, thanks for clarifying.
JS lint failure:
/cc @nodejs/build |
landed as ef907bb thank you @eiskalteschatten for the contribution! Wish you great success with continued contribution to this project, if you are further interested please have a look at https://www.nodetodo.org/next-steps |
PR-URL: #24145 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
You're very welcome. I will have a look at the link you posted because I would be interested in contributing more. |
PR-URL: #24145 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
PR-URL: nodejs#24145 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
PR-URL: #24145 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
PR-URL: #24145 Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This pull request fixes the order of the arguments for several instances of assert.strictEqual in test/parallel/test-buffer-indexof.js
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes