Skip to content

Commit 704d886

Browse files
Natalie CluerMylesBorins
authored andcommitted
test: correct order of args in assert.strictEqual()
Ensure literal values are passed in as second argument PR-URL: #24157 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent 0260db5 commit 704d886

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

‎test/parallel/test-buffer-fill.js‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -302,19 +302,19 @@ Buffer.alloc(8, '');
302302

303303
buf.fill(0);
304304
for(leti=0;i<buf.length;i++)
305-
assert.strictEqual(0,buf[i]);
305+
assert.strictEqual(buf[i],0);
306306

307307
buf.fill(null);
308308
for(leti=0;i<buf.length;i++)
309-
assert.strictEqual(0,buf[i]);
309+
assert.strictEqual(buf[i],0);
310310

311311
buf.fill(1,16,32);
312312
for(leti=0;i<16;i++)
313-
assert.strictEqual(0,buf[i]);
313+
assert.strictEqual(buf[i],0);
314314
for(leti=16;i<32;i++)
315-
assert.strictEqual(1,buf[i]);
315+
assert.strictEqual(buf[i],1);
316316
for(leti=32;i<buf.length;i++)
317-
assert.strictEqual(0,buf[i]);
317+
assert.strictEqual(buf[i],0);
318318
}
319319

320320
{

0 commit comments

Comments
(0)