Skip to content

Commit 800bd9a

Browse files
authored
Update test.ndarray.js
Signed-off-by: Kaushikgtm <[email protected]>
1 parent e05d710 commit 800bd9a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/stats/base/nanmskmin/test/test.ndarray.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ tape( 'the function calculates the minimum value of a strided array according to
6161
t.strictEqual( isNegativeZero( v ), true, 'returns expected value' );
6262

6363
x = [ -4.0, 0.0, NaN, 5.0 ];
64-
mask = [ 0, 0, 0, 0 ];
64+
mask = [ 0, 0, 2, 0 ];
6565
v = nanmskmin( x.length, x, 1, 0, mask, 1, 0 );
6666
t.strictEqual( v, -4.0, 'returns expected value' );
6767

@@ -231,7 +231,7 @@ tape( 'the function supports `stride` parameters', function test( t ) {
231231
0
232232
];
233233

234-
v = nanmskmin( 5, x, 2, 0, mask, 2, 0 );
234+
v = nanmskmin( x.length, x, 2, 0, mask, 2, 0 );
235235

236236
t.strictEqual( v, -2.0, 'returns expected value' );
237237
t.end();

0 commit comments

Comments
 (0)