File tree Expand file tree Collapse file tree 1 file changed +0
-36
lines changed
lib/node_modules/@stdlib/blas/ext/last-index-of/test Expand file tree Collapse file tree 1 file changed +0
-36
lines changed Original file line number Diff line number Diff line change @@ -560,42 +560,6 @@ tape( 'the function throws an error if provided an output argument which is not
560560 }
561561} ) ;
562562
563- tape ( 'the function throws an error if provided an output argument which is not an ndarray-like object' , function test ( t ) {
564- var values ;
565- var opts ;
566- var i ;
567- var x ;
568-
569- opts = {
570- 'dtype' : 'generic'
571- } ;
572-
573- x = zeros ( [ 2 , 2 ] , opts ) ;
574-
575- values = [
576- '5' ,
577- 5 ,
578- NaN ,
579- true ,
580- false ,
581- null ,
582- void 0 ,
583- [ ] ,
584- { } ,
585- function noop ( ) { }
586- ] ;
587- for ( i = 0 ; i < values . length ; i ++ ) {
588- t . throws ( badValue ( values [ i ] ) , TypeError , 'throws an error when provided ' + values [ i ] ) ;
589- }
590- t . end ( ) ;
591-
592- function badValue ( value ) {
593- return function badValue ( ) {
594- lastIndexOf ( x , 2.0 , value ) ;
595- } ;
596- }
597- } ) ;
598-
599563tape ( 'the function throws an error if provided an output argument which is not an ndarray-like object (options)' , function test ( t ) {
600564 var values ;
601565 var opts ;
You can’t perform that action at this time.
0 commit comments