Skip to content

Commit ef4f37b

Browse files
authored
fix: apply suggestions from code review
Signed-off-by: Muhammad Haris <[email protected]>
1 parent 947054f commit ef4f37b

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -524,18 +524,14 @@ 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 a third 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 or an integer', function test( t ) {
528528
var values;
529529
var i;
530530
var x;
531-
var y;
532531

533532
x = zeros( [ 2, 2 ], {
534533
'dtype': 'float64'
535534
});
536-
y = zeros( [], {
537-
'dtype': 'generic'
538-
});
539535
values = [
540536
'5',
541537
NaN,
@@ -553,7 +549,7 @@ tape( 'the function throws an error if provided a third argument which is not an
553549

554550
function badValue( value ) {
555551
return function badValue() {
556-
lastIndexOf( x, scalar2ndarray( 2.0 ), value, y, {} );
552+
lastIndexOf( x, scalar2ndarray( 2.0 ), scalar2ndarray( 0 ), value, {} );
557553
};
558554
}
559555
});

0 commit comments

Comments
 (0)