Skip to content

Commit e428a6a

Browse files
authored
test: actually test that elements are masked
Signed-off-by: Athan <kgryte@gmail.com>
1 parent 4c2fe24 commit e428a6a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • lib/node_modules/@stdlib/stats/base/ndarray/dnanmskmax/test

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ tape( 'the function calculates the maximum value of a one-dimensional ndarray ac
6666
var v;
6767

6868
x = new Float64Array( [ 1.0, -2.0, -4.0, NaN, 5.0, 0.0, 3.0 ] );
69-
mask = new Uint8Array( [ 0, 0, 0, 0, 0, 0, 0 ] );
69+
mask = new Uint8Array( [ 0, 0, 0, 0, 1, 0, 0 ] );
7070
v = dnanmskmax( [ vector( 'float64', x, x.length, 1, 0 ), vector( 'uint8', mask, mask.length, 1, 0 ) ] );
71-
t.strictEqual( v, 5.0, 'returns expected value' );
71+
t.strictEqual( v, 3.0, 'returns expected value' );
7272

7373
x = new Float64Array( [ -4.0, NaN, -5.0 ] );
7474
mask = new Uint8Array( [ 0, 0, 0 ] );

0 commit comments

Comments
 (0)