Skip to content

Commit 799f632

Browse files
authored
test: use strict equality test
Signed-off-by: Athan <kgryte@gmail.com>
1 parent 87ea6fe commit 799f632

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@ tape( 'the function calculates the arithmetic mean of a one-dimensional ndarray'
6969
v = sdsnanmeanors( [ vector( x, 2, 1, 0 ) ] );
7070
t.strictEqual( v, -4.5, 'returns expected value' );
7171

72-
x = new Float32Array( [ 1.0, -2.0, NaN, 2.0 ] );
72+
x = new Float32Array( [ 1.0, -2.0, NaN, 4.0 ] );
7373
v = sdsnanmeanors( [ vector( x, 4, 1, 0 ) ] );
74-
t.ok( v >= 0.333 && v <= 0.334, 'returns expected value' );
74+
t.strictEqual( v, 1.0, 'returns expected value' );
7575

7676
t.end();
7777
});

0 commit comments

Comments
 (0)