@@ -53,7 +53,7 @@ tape( 'main export is a function', function test( t ) {
5353 t . end ( ) ;
5454} ) ;
5555
56- tape ( 'the function throws an error if provided an unrecognized data type (two arguments )' , function test ( t ) {
56+ tape ( 'the function throws an error if provided an unrecognized data type (one argument )' , function test ( t ) {
5757 var values ;
5858 var i ;
5959
@@ -83,7 +83,7 @@ tape( 'the function throws an error if provided an unrecognized data type (two a
8383
8484 function badValue ( value ) {
8585 return function badValue ( ) {
86- filledarray ( 1.0 , value ) ;
86+ filledarray ( value ) ;
8787 } ;
8888 }
8989} ) ;
@@ -542,7 +542,7 @@ tape( 'the function returns a filled array (default)', function test( t ) {
542542
543543 expected = new Float64Array ( 0 ) ;
544544
545- arr = filledarray ( 1.0 ) ;
545+ arr = filledarray ( ) ;
546546 t . strictEqual ( instanceOf ( arr , Float64Array ) , true , 'returns expected value' ) ;
547547 t . strictEqual ( arr . length , 0 , 'returns expected value' ) ;
548548 t . deepEqual ( arr , expected , 'returns expected value' ) ;
@@ -556,7 +556,7 @@ tape( 'the function returns a filled array (dtype=float64)', function test( t )
556556
557557 expected = new Float64Array ( 0 ) ;
558558
559- arr = filledarray ( 1.0 , 'float64' ) ;
559+ arr = filledarray ( 'float64' ) ;
560560 t . strictEqual ( instanceOf ( arr , Float64Array ) , true , 'returns expected value' ) ;
561561 t . strictEqual ( arr . length , 0 , 'returns expected value' ) ;
562562 t . deepEqual ( arr , expected , 'returns expected value' ) ;
@@ -570,7 +570,7 @@ tape( 'the function returns a filled array (dtype=float32)', function test( t )
570570
571571 expected = new Float32Array ( 0 ) ;
572572
573- arr = filledarray ( 1.0 , 'float32' ) ;
573+ arr = filledarray ( 'float32' ) ;
574574 t . strictEqual ( instanceOf ( arr , Float32Array ) , true , 'returns expected value' ) ;
575575 t . strictEqual ( arr . length , 0 , 'returns expected value' ) ;
576576 t . deepEqual ( arr , expected , 'returns expected value' ) ;
@@ -584,7 +584,7 @@ tape( 'the function returns a filled array (dtype=int32)', function test( t ) {
584584
585585 expected = new Int32Array ( 0 ) ;
586586
587- arr = filledarray ( 1 , 'int32' ) ;
587+ arr = filledarray ( 'int32' ) ;
588588 t . strictEqual ( instanceOf ( arr , Int32Array ) , true , 'returns expected value' ) ;
589589 t . strictEqual ( arr . length , 0 , 'returns expected value' ) ;
590590 t . deepEqual ( arr , expected , 'returns expected value' ) ;
@@ -598,7 +598,7 @@ tape( 'the function returns a filled array (dtype=uint32)', function test( t ) {
598598
599599 expected = new Uint32Array ( 0 ) ;
600600
601- arr = filledarray ( 1 , 'uint32' ) ;
601+ arr = filledarray ( 'uint32' ) ;
602602 t . strictEqual ( instanceOf ( arr , Uint32Array ) , true , 'returns expected value' ) ;
603603 t . strictEqual ( arr . length , 0 , 'returns expected value' ) ;
604604 t . deepEqual ( arr , expected , 'returns expected value' ) ;
@@ -612,7 +612,7 @@ tape( 'the function returns a filled array (dtype=int16)', function test( t ) {
612612
613613 expected = new Int16Array ( 0 ) ;
614614
615- arr = filledarray ( 1 , 'int16' ) ;
615+ arr = filledarray ( 'int16' ) ;
616616 t . strictEqual ( instanceOf ( arr , Int16Array ) , true , 'returns expected value' ) ;
617617 t . strictEqual ( arr . length , 0 , 'returns expected value' ) ;
618618 t . deepEqual ( arr , expected , 'returns expected value' ) ;
@@ -626,7 +626,7 @@ tape( 'the function returns a filled array (dtype=uint16)', function test( t ) {
626626
627627 expected = new Uint16Array ( 0 ) ;
628628
629- arr = filledarray ( 1 , 'uint16' ) ;
629+ arr = filledarray ( 'uint16' ) ;
630630 t . strictEqual ( instanceOf ( arr , Uint16Array ) , true , 'returns expected value' ) ;
631631 t . strictEqual ( arr . length , 0 , 'returns expected value' ) ;
632632 t . deepEqual ( arr , expected , 'returns expected value' ) ;
@@ -640,7 +640,7 @@ tape( 'the function returns a filled array (dtype=int8)', function test( t ) {
640640
641641 expected = new Int8Array ( 0 ) ;
642642
643- arr = filledarray ( 1 , 'int8' ) ;
643+ arr = filledarray ( 'int8' ) ;
644644 t . strictEqual ( instanceOf ( arr , Int8Array ) , true , 'returns expected value' ) ;
645645 t . strictEqual ( arr . length , 0 , 'returns expected value' ) ;
646646 t . deepEqual ( arr , expected , 'returns expected value' ) ;
@@ -654,7 +654,7 @@ tape( 'the function returns a filled array (dtype=uint8)', function test( t ) {
654654
655655 expected = new Uint8Array ( 0 ) ;
656656
657- arr = filledarray ( 1 , 'uint8' ) ;
657+ arr = filledarray ( 'uint8' ) ;
658658 t . strictEqual ( instanceOf ( arr , Uint8Array ) , true , 'returns expected value' ) ;
659659 t . strictEqual ( arr . length , 0 , 'returns expected value' ) ;
660660 t . deepEqual ( arr , expected , 'returns expected value' ) ;
@@ -668,7 +668,7 @@ tape( 'the function returns a filled array (dtype=uint8c)', function test( t ) {
668668
669669 expected = new Uint8ClampedArray ( 0 ) ;
670670
671- arr = filledarray ( 1 , 'uint8c' ) ;
671+ arr = filledarray ( 'uint8c' ) ;
672672 t . strictEqual ( instanceOf ( arr , Uint8ClampedArray ) , true , 'returns expected value' ) ;
673673 t . strictEqual ( arr . length , 0 , 'returns expected value' ) ;
674674 t . deepEqual ( arr , expected , 'returns expected value' ) ;
@@ -682,7 +682,7 @@ tape( 'the function returns a filled array (dtype=generic)', function test( t )
682682
683683 expected = [ ] ;
684684
685- arr = filledarray ( 1 , 'generic' ) ;
685+ arr = filledarray ( 'generic' ) ;
686686 t . strictEqual ( instanceOf ( arr , Array ) , true , 'returns expected value' ) ;
687687 t . strictEqual ( arr . length , 0 , 'returns expected value' ) ;
688688 t . deepEqual ( arr , expected , 'returns expected value' ) ;
0 commit comments