Skip to content

Commit 7cb88ad

Browse files
committed
minor issues solved
1 parent 86e2ad2 commit 7cb88ad

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

lib/node_modules/@stdlib/math/base/special/minmax/benchmark/benchmark.native.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ bench( pkg+'::native', opts, function benchmark( b ) {
5050
b.tic();
5151
for ( i = 0; i < b.iterations; i++ ) {
5252
v = minmax( x, y );
53-
if ( isnan( v[ 0 ] ) || isnan( v[ 1 ] )) {
54-
b.fail( 'should not return NaN' );
53+
if ( v.length !== 2 ) {
54+
b.fail( 'should have expected length' );
5555
}
5656
}
5757
b.toc();
58-
if ( isnan( v[ 0 ] ) || isnan( v[ 1 ] ) ) {
59-
b.fail( 'should not return NaN' );
58+
if ( v.length !== 2 ) {
59+
b.fail( 'should have expected length' );
6060
}
6161
b.pass( 'benchmark finished' );
6262
b.end();

lib/node_modules/@stdlib/math/base/special/minmax/src/addon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ static napi_value addon( napi_env env, napi_callback_info info ) {
6969
}
7070

7171
napi_valuetype vtype2;
72-
status = napi_typeof( env, argv[ 2 ], &vtype1 );
72+
status = napi_typeof( env, argv[ 2 ], &vtype2 );
7373
assert( status == napi_ok );
7474
if ( vtype2 != napi_number ) {
7575
status = napi_throw_type_error( env, NULL, "invalid argument. Third argument must be a number." );

0 commit comments

Comments
 (0)