Skip to content

Commit 7c3fb16

Browse files
authored
test: fix test
Signed-off-by: Athan <[email protected]>
1 parent c637cf7 commit 7c3fb16

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

lib/node_modules/@stdlib/blas/ext/last-index-of/test/test.assign.js

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -524,22 +524,28 @@ tape( 'the function throws an error if provided a third argument which is not an
524524
}
525525
});
526526

527-
tape( 'the function throws an error if provided an output argument which is not an ndarray-like object or an integer', function test( t ) {
527+
tape( 'the function throws an error if provided an output argument which is not an ndarray-like object', function test( t ) {
528528
var values;
529+
var opts;
529530
var i;
530531
var x;
531532

532-
x = zeros( [ 2, 2 ], {
533-
'dtype': 'float64'
534-
});
533+
opts = {
534+
'dtype': 'generic'
535+
};
536+
537+
x = zeros( [ 2, 2 ], opts );
538+
535539
values = [
536540
'5',
541+
5,
537542
NaN,
538543
true,
539544
false,
540545
null,
541546
void 0,
542547
[],
548+
{},
543549
function noop() {}
544550
];
545551
for ( i = 0; i < values.length; i++ ) {
@@ -549,7 +555,7 @@ tape( 'the function throws an error if provided an output argument which is not
549555

550556
function badValue( value ) {
551557
return function badValue() {
552-
lastIndexOf( x, scalar2ndarray( 2.0 ), scalar2ndarray( 0 ), value, {} );
558+
lastIndexOf( x, 2.0, value );
553559
};
554560
}
555561
});

0 commit comments

Comments
 (0)