test: fix order of arguments in assert.strictEqual#24145
test: fix order of arguments in assert.strictEqual#24145eiskalteschatten wants to merge 1 commit intonodejs:masterfrom eiskalteschatten:master
Conversation
| 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.
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.
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.
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