Skip to content

Commit 65fd704

Browse files
committed
Auto-generated commit
1 parent b497df1 commit 65fd704

File tree

8 files changed

+70
-63
lines changed

8 files changed

+70
-63
lines changed

.github/.keepalive

Lines changed: 0 additions & 1 deletion
This file was deleted.

CHANGELOG.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,19 @@
44
55
<section class="release" id="unreleased">
66

7-
## Unreleased (2025-08-11)
7+
## Unreleased (2025-08-15)
88

99
<section class="commits">
1010

1111
### Commits
1212

1313
<details>
1414

15+
- [`6f85067`](https://github.com/stdlib-js/stdlib/commit/6f8506775cdf2b3edf740216340ff7a0a82677dc) - **test:** fix malformed test descriptions from strictEqual migration _(by Philipp Burckhardt)_
16+
- [`7add020`](https://github.com/stdlib-js/stdlib/commit/7add0201c13e56a0381926ccfd4073c84eaf2ed4) - **test:** use standardized assertion messages and fix lint errors _(by Philipp Burckhardt)_
17+
- [`11581aa`](https://github.com/stdlib-js/stdlib/commit/11581aaca8c3cb824cbb92c0c0f80e76890bdb20) - **test:** use standardized assertion messages and fix lint errors _(by Philipp Burckhardt)_
18+
- [`07f7c05`](https://github.com/stdlib-js/stdlib/commit/07f7c0522c73e6ad9505e1d45035ae439344200d) - **test:** use standardized assertion messages and fix lint errors _(by Philipp Burckhardt)_
19+
- [`54da286`](https://github.com/stdlib-js/stdlib/commit/54da28610f5ee6b2aa181addb1775d32f79043ee) - **test:** use .strictEqual() instead of .equal() and fix lint errors _(by Philipp Burckhardt)_
1520
- [`504a3f1`](https://github.com/stdlib-js/stdlib/commit/504a3f1d1db20b670b48efd1c292d7efbb433b58) - **style:** fix indentation in JSON files _(by Philipp Burckhardt)_
1621

1722
</details>

CONTRIBUTORS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ Abhishek G <166795493+AbhishekG-Codes@users.noreply.github.com>
1313
Abhishek Jain <40913033+abhishekblue@users.noreply.github.com>
1414
Adarsh Palaskar <adarshpalaskar99@gmail.com>
1515
Aditya Sapra <adityaework@gmail.com>
16+
Aditya Singh <adityasinghk099@gmail.com>
1617
Ahmed Atwa <Ahmedatwa866@yahoo.com>
1718
Ahmed Kashkoush <ahmedkashkoush464@gmail.com>
1819
Ahmed Khaled <kahmd1444@gmail.com>
@@ -121,6 +122,7 @@ Muhammad Haris <harriskhan047@outlook.com>
121122
Muhammad Taaha Tariq <166188821+Taaha-Tariq@users.noreply.github.com>
122123
Muhmmad Saad <106260977+saad-imran-dev@users.noreply.github.com>
123124
NEEKUorAAYUSH <aayush10072004@gmail.com>
125+
Nakul Krishnakumar <nakulkrishnakumar86@gmail.com>
124126
Naresh Jagadeesan <naresh.naresh000@gmail.com>
125127
Naveen Kumar <stupiddint@gmail.com>
126128
Neeraj Pathak <neerajrpathak710@gmail.com>
@@ -164,6 +166,7 @@ Ruthwik Chikoti <145591715+ruthwikchikoti@users.noreply.github.com>
164166
Ryan Seal <splrk@users.noreply.github.com>
165167
Rylan Yang <137365285+rylany27@users.noreply.github.com>
166168
SAHIL KUMAR <168997976+sahilk45@users.noreply.github.com>
169+
SAUJANYA MAGARDE <162047941+SaujanyaMagarde@users.noreply.github.com>
167170
SHIVAM YADAV <120725381+Shivam-1827@users.noreply.github.com>
168171
Sachin Raj <120590207+schnrj@users.noreply.github.com>
169172
Sahil Goyal <87982509+sahil20021008@users.noreply.github.com>

test/test.factory.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,13 @@ tape( 'main export is a function', function test( t ) {
3737

3838
tape( 'the function returns a factory function', function test( t ) {
3939
var createStream = factory();
40-
t.equal( typeof createStream, 'function', 'returns a function' );
40+
t.strictEqual( typeof createStream, 'function', 'returns expected value' );
4141
t.end();
4242
});
4343

4444
tape( 'the function returns a factory function (options)', function test( t ) {
4545
var createStream = factory( {} );
46-
t.equal( typeof createStream, 'function', 'returns a function' );
46+
t.strictEqual( typeof createStream, 'function', 'returns expected value' );
4747
t.end();
4848
});
4949

@@ -323,7 +323,7 @@ tape( 'the function returns a factory function which creates stream instances',
323323
createStream = factory();
324324

325325
for ( i = 0; i < 10; i++ ) {
326-
t.equal( createStream() instanceof RandomStream, true, 'returns a stream instance' );
326+
t.strictEqual( createStream() instanceof RandomStream, true, 'returns expected value' );
327327
}
328328
t.end();
329329
});
@@ -335,7 +335,7 @@ tape( 'the function returns a factory function which creates stream instances (o
335335
createStream = factory( {} );
336336

337337
for ( i = 0; i < 10; i++ ) {
338-
t.equal( createStream() instanceof RandomStream, true, 'returns a stream instance' );
338+
t.strictEqual( createStream() instanceof RandomStream, true, 'returns expected value' );
339339
}
340340
t.end();
341341
});

test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ tape( 'main export is a function', function test( t ) {
3333
});
3434

3535
tape( 'attached to main export is a method to create a stream in object mode', function test( t ) {
36-
t.equal( typeof randomStream.objectMode, 'function', 'has method' );
36+
t.strictEqual( typeof randomStream.objectMode, 'function', 'has method' );
3737
t.end();
3838
});
3939

4040
tape( 'attached to main export is a method to create a stream factory', function test( t ) {
41-
t.equal( typeof randomStream.factory, 'function', 'has method' );
41+
t.strictEqual( typeof randomStream.factory, 'function', 'has method' );
4242
t.end();
4343
});

test/test.main.js

Lines changed: 34 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ tape( 'the function is a constructor which returns a readable stream', function
305305
var s;
306306

307307
s = new RandomStream();
308-
t.equal( s instanceof Readable, true, 'returns expected value' );
308+
t.strictEqual( s instanceof Readable, true, 'returns expected value' );
309309
t.end();
310310
});
311311

@@ -314,13 +314,13 @@ tape( 'the constructor does not require the `new` operator', function test( t )
314314
var s;
315315

316316
s = randomStream();
317-
t.equal( s instanceof RandomStream, true, 'returns expected value' );
317+
t.strictEqual( s instanceof RandomStream, true, 'returns expected value' );
318318
t.end();
319319
});
320320

321321
tape( 'the constructor returns a readable stream (no new)', function test( t ) {
322322
var s = randomStream();
323-
t.equal( s instanceof Readable, true, 'returns expected value' );
323+
t.strictEqual( s instanceof Readable, true, 'returns expected value' );
324324
t.end();
325325
});
326326

@@ -330,7 +330,7 @@ tape( 'the returned stream provides a method to destroy a stream (object)', func
330330

331331
s = randomStream();
332332

333-
t.equal( typeof s.destroy, 'function', 'has destroy method' );
333+
t.strictEqual( typeof s.destroy, 'function', 'has destroy method' );
334334

335335
s.on( 'error', onError );
336336
s.on( 'close', onClose );
@@ -365,7 +365,7 @@ tape( 'the returned stream provides a method to destroy a stream (error object)'
365365

366366
s = randomStream();
367367

368-
t.equal( typeof s.destroy, 'function', 'has destroy method' );
368+
t.strictEqual( typeof s.destroy, 'function', 'has destroy method' );
369369

370370
s.on( 'error', onError );
371371
s.on( 'close', onClose );
@@ -418,8 +418,8 @@ tape( 'attached to the returned stream is the generator seed', function test( t
418418
'seed': 12345
419419
});
420420

421-
t.equal( isInt32Array( s.seed ), true, 'has property' );
422-
t.equal( s.seed[ 0 ], 12345, 'equal to provided seed' );
421+
t.strictEqual( isInt32Array( s.seed ), true, 'has property' );
422+
t.strictEqual( s.seed[ 0 ], 12345, 'equal to provided seed' );
423423

424424
t.end();
425425
});
@@ -436,35 +436,35 @@ tape( 'attached to the returned stream is the generator seed (array seed)', func
436436
});
437437

438438
actual = s.seed;
439-
t.equal( isInt32Array( actual ), true, 'has property' );
439+
t.strictEqual( isInt32Array( actual ), true, 'has property' );
440440
for ( i = 0; i < seed.length; i++ ) {
441-
t.equal( actual[ i ], seed[ i ], 'returns expected value for word '+i );
441+
t.strictEqual( actual[ i ], seed[ i ], 'returns expected value for word '+i );
442442
}
443443

444444
t.end();
445445
});
446446

447447
tape( 'attached to the returned stream is the generator seed length', function test( t ) {
448448
var s = randomStream();
449-
t.equal( typeof s.seedLength, 'number', 'has property' );
449+
t.strictEqual( typeof s.seedLength, 'number', 'has property' );
450450
t.end();
451451
});
452452

453453
tape( 'attached to the returned stream is the generator state', function test( t ) {
454454
var s = randomStream();
455-
t.equal( isInt32Array( s.state ), true, 'has property' );
455+
t.strictEqual( isInt32Array( s.state ), true, 'has property' );
456456
t.end();
457457
});
458458

459459
tape( 'attached to the returned stream is the generator state length', function test( t ) {
460460
var s = randomStream();
461-
t.equal( typeof s.stateLength, 'number', 'has property' );
461+
t.strictEqual( typeof s.stateLength, 'number', 'has property' );
462462
t.end();
463463
});
464464

465465
tape( 'attached to the returned stream is the generator state size', function test( t ) {
466466
var s = randomStream();
467-
t.equal( typeof s.byteLength, 'number', 'has property' );
467+
t.strictEqual( typeof s.byteLength, 'number', 'has property' );
468468
t.end();
469469
});
470470

@@ -497,7 +497,7 @@ tape( 'the constructor returns a stream for generating pseudorandom numbers via
497497
s.pipe( iStream );
498498

499499
function inspect( chunk ) {
500-
t.equal( isBuffer( chunk ), true, 'returns a buffer' );
500+
t.strictEqual( isBuffer( chunk ), true, 'returns expected value' );
501501
result += chunk.toString();
502502
}
503503

@@ -507,9 +507,9 @@ tape( 'the constructor returns a stream for generating pseudorandom numbers via
507507
t.pass( 'stream ended' );
508508

509509
result = result.split( '\n' );
510-
t.equal( result.length, 10, 'has expected length' );
510+
t.strictEqual( result.length, 10, 'has expected length' );
511511
for ( i = 0; i < result.length; i++ ) {
512-
t.equal( parseFloat( result[ i ] ), rand(), 'returns expected value. i: ' + i + '.' );
512+
t.strictEqual( parseFloat( result[ i ] ), rand(), 'returns expected value. i: ' + i + '.' );
513513
}
514514
t.end();
515515
}
@@ -546,7 +546,7 @@ tape( 'the constructor returns a stream for generating normalized pseudorandom n
546546
s.pipe( iStream );
547547

548548
function inspect( chunk ) {
549-
t.equal( isBuffer( chunk ), true, 'returns a buffer' );
549+
t.strictEqual( isBuffer( chunk ), true, 'returns expected value' );
550550
result += chunk.toString();
551551
}
552552

@@ -556,9 +556,9 @@ tape( 'the constructor returns a stream for generating normalized pseudorandom n
556556
t.pass( 'stream ended' );
557557

558558
result = result.split( '\n' );
559-
t.equal( result.length, 10, 'has expected length' );
559+
t.strictEqual( result.length, 10, 'has expected length' );
560560
for ( i = 0; i < result.length; i++ ) {
561-
t.equal( parseFloat( result[ i ] ), rand(), 'returns expected value. i: ' + i + '.' );
561+
t.strictEqual( parseFloat( result[ i ] ), rand(), 'returns expected value. i: ' + i + '.' );
562562
}
563563
t.end();
564564
}
@@ -593,7 +593,7 @@ tape( 'the constructor returns a stream for generating pseudorandom numbers via
593593

594594
function inspect( v ) {
595595
count += 1;
596-
t.equal( rand(), v, 'returns expected value. i: '+count+'.' );
596+
t.strictEqual( rand(), v, 'returns expected value. i: '+count+'.' );
597597
if ( count >= 10 ) {
598598
s.destroy();
599599
}
@@ -636,7 +636,7 @@ tape( 'the constructor returns a stream for generating normalized pseudorandom n
636636

637637
function inspect( v ) {
638638
count += 1;
639-
t.equal( rand(), v, 'returns expected value. i: '+count+'.' );
639+
t.strictEqual( rand(), v, 'returns expected value. i: '+count+'.' );
640640
if ( count >= 10 ) {
641641
s.destroy();
642642
}
@@ -674,11 +674,11 @@ tape( 'the constructor supports limiting the number of iterations', function tes
674674

675675
function inspect( v ) {
676676
count += 1;
677-
t.equal( typeof v, 'number', 'returns expected value' );
677+
t.strictEqual( typeof v, 'number', 'returns expected value' );
678678
}
679679

680680
function onEnd() {
681-
t.equal( count === niter, true, 'performs expected number of iterations' );
681+
t.strictEqual( count === niter, true, 'performs expected number of iterations' );
682682
t.end();
683683
}
684684
});
@@ -709,11 +709,11 @@ tape( 'by default, the constructor generates newline-delimited pseudorandom numb
709709
var i;
710710

711711
result = result.split( '\n' );
712-
t.equal( result.length, opts.iter, 'has expected length' );
712+
t.strictEqual( result.length, opts.iter, 'has expected length' );
713713
for ( i = 0; i < result.length; i++ ) {
714714
v = parseFloat( result[ i ] );
715-
t.equal( typeof v, 'number', 'returns expected value' );
716-
t.equal( isnan( v ), false, 'is not NaN' );
715+
t.strictEqual( typeof v, 'number', 'returns expected value' );
716+
t.strictEqual( isnan( v ), false, 'is not NaN' );
717717
}
718718
t.end();
719719
}
@@ -746,11 +746,11 @@ tape( 'the constructor supports providing a custom separator for streamed values
746746
var i;
747747

748748
result = result.split( opts.sep );
749-
t.equal( result.length, opts.iter, 'has expected length' );
749+
t.strictEqual( result.length, opts.iter, 'has expected length' );
750750
for ( i = 0; i < result.length; i++ ) {
751751
v = parseFloat( result[ i ] );
752-
t.equal( typeof v, 'number', 'returns expected value' );
753-
t.equal( isnan( v ), false, 'is not NaN' );
752+
t.strictEqual( typeof v, 'number', 'returns expected value' );
753+
t.strictEqual( isnan( v ), false, 'is not NaN' );
754754
}
755755
t.end();
756756
}
@@ -807,7 +807,7 @@ tape( 'the constructor supports returning a seeded readable stream', function te
807807
}
808808

809809
function inspect2( v ) {
810-
t.equal( v, arr[ i ], 'returns expected value' );
810+
t.strictEqual( v, arr[ i ], 'returns expected value' );
811811
i += 1;
812812
}
813813

@@ -889,7 +889,7 @@ tape( 'the constructor supports specifying the underlying generator state', func
889889

890890
function inspect2( v ) {
891891
count += 1;
892-
t.equal( v, arr[ count-1 ], 'returns expected value. i: '+(count-1)+'.' );
892+
t.strictEqual( v, arr[ count-1 ], 'returns expected value. i: '+(count-1)+'.' );
893893
}
894894

895895
function onEnd2() {
@@ -976,7 +976,7 @@ tape( 'the constructor supports specifying a shared underlying generator state',
976976

977977
function inspect2( v ) {
978978
count += 1;
979-
t.equal( v, arr[ count-1 ], 'returns expected value. i: '+(count-1)+'.' );
979+
t.strictEqual( v, arr[ count-1 ], 'returns expected value. i: '+(count-1)+'.' );
980980
}
981981

982982
function onEnd2() {
@@ -1010,7 +1010,7 @@ tape( 'the constructor supports specifying a shared underlying generator state',
10101010

10111011
function inspect3( v ) {
10121012
count += 1;
1013-
t.equal( v, arr[ count-1 ], 'returns expected value. i: '+(count-1)+'.' );
1013+
t.strictEqual( v, arr[ count-1 ], 'returns expected value. i: '+(count-1)+'.' );
10141014
}
10151015

10161016
function onEnd3() {
@@ -1064,7 +1064,7 @@ tape( 'the returned stream supports setting the underlying generator state', fun
10641064
s.pipe( iStream );
10651065

10661066
function inspect( v ) {
1067-
t.equal( v, arr[ i ], 'returns expected value. i: ' + i + '.' );
1067+
t.strictEqual( v, arr[ i ], 'returns expected value. i: ' + i + '.' );
10681068
i += 1;
10691069
}
10701070

test/test.object_mode.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -299,13 +299,13 @@ tape( 'if provided an invalid readable stream option, the function throws an err
299299

300300
tape( 'the function returns a stream instance', function test( t ) {
301301
var s = objectMode();
302-
t.equal( s instanceof RandomStream, true, 'returns a stream instance' );
302+
t.strictEqual( s instanceof RandomStream, true, 'returns expected value' );
303303
t.end();
304304
});
305305

306306
tape( 'the function returns a stream instance (options)', function test( t ) {
307307
var s = objectMode( {} );
308-
t.equal( s instanceof RandomStream, true, 'returns a stream instance' );
308+
t.strictEqual( s instanceof RandomStream, true, 'returns expected value' );
309309
t.end();
310310
});
311311

@@ -328,8 +328,8 @@ tape( 'the function returns a stream which streams integers', function test( t )
328328
s.pipe( iStream );
329329

330330
function inspect( v ) {
331-
t.equal( typeof v, 'number', 'returns expected value' );
332-
t.equal( isInteger( v ), true, 'returns an integer' );
331+
t.strictEqual( typeof v, 'number', 'returns expected value' );
332+
t.strictEqual( isInteger( v ), true, 'returns expected value' );
333333
}
334334

335335
function onEnd() {
@@ -357,8 +357,8 @@ tape( 'the function supports returning a stream which streams normalized numbers
357357
s.pipe( iStream );
358358

359359
function inspect( v ) {
360-
t.equal( typeof v, 'number', 'returns expected value' );
361-
t.equal( v >= 0.0 && v < 1.0, true, 'returns expected range' );
360+
t.strictEqual( typeof v, 'number', 'returns expected value' );
361+
t.strictEqual( v >= 0.0 && v < 1.0, true, 'returns expected range' );
362362
}
363363

364364
function onEnd() {
@@ -386,7 +386,7 @@ tape( 'the function does not support overriding the `objectMode` option', functi
386386
s.pipe( iStream );
387387

388388
function inspect( v ) {
389-
t.equal( typeof v, 'number', 'returns expected value' );
389+
t.strictEqual( typeof v, 'number', 'returns expected value' );
390390
}
391391

392392
function onEnd() {

0 commit comments

Comments
 (0)