@@ -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
321321tape ( '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
447447tape ( '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
453453tape ( '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
459459tape ( '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
465465tape ( '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
0 commit comments