Skip to content

Commit 0297ff6

Browse files
authored
Update test.nanmax_by.js
Signed-off-by: Kaushikgtm <[email protected]>
1 parent 27b7ac5 commit 0297ff6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/stats/base/nanmax-by/test/test.nanmax_by.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ tape( 'the function calculates the maximum value of a strided array via a callba
8080
v = nanmaxBy( x.length, x, 1, accessor );
8181
t.strictEqual( isnan( v ), true, 'returns expected value' );
8282

83-
x = Array( 5 ).fill( undefined ); // sparse array
83+
x = new Array( 5 ); // sparse array
8484
x[ 2 ] = 1.0;
8585
v = nanmaxBy( x.length, x, 1, accessor );
8686
t.strictEqual( v, 2.0, 'returns expected value' );
@@ -311,7 +311,7 @@ tape( 'if provided a `stride` parameter equal to `0`, the function returns the f
311311
v = nanmaxBy( x.length, x, 0, accessor );
312312
t.strictEqual( v, 2.0, 'returns expected value' );
313313

314-
x = new Array( 1 ).fill( undefined ); // sparse array
314+
x = new Array( 5 ); // sparse array
315315
v = nanmaxBy( 1, toAccessorArray( x ), 0, accessor );
316316
t.strictEqual( isnan( v ), true, 'returns expected value' );
317317

0 commit comments

Comments
 (0)