Skip to content

Commit 06ef628

Browse files
authored
test: consolidate tests
Signed-off-by: Athan <kgryte@gmail.com>
1 parent 8348f46 commit 06ef628

1 file changed

Lines changed: 4 additions & 25 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: 4 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,13 @@ tape( 'the function supports one-dimensional ndarrays having non-unit strides',
121121

122122
x = new Float32Array([
123123
1.0, // 0
124-
2.0,
124+
NaN,
125125
2.0, // 1
126-
-7.0,
126+
NaN,
127127
-2.0, // 2
128-
3.0,
128+
NaN,
129129
4.0, // 3
130-
2.0
130+
NaN
131131
]);
132132

133133
v = sdsnanmeanors( [ vector( x, 4, 2, 0 ) ] );
@@ -177,24 +177,3 @@ tape( 'the function supports one-dimensional ndarrays having non-zero offsets',
177177

178178
t.end();
179179
});
180-
181-
tape( 'the function ignores NaN values in non-unit stride arrays', function test( t ) {
182-
var x;
183-
var v;
184-
185-
x = new Float32Array([
186-
1.0, // 0
187-
NaN,
188-
2.0, // 1
189-
NaN,
190-
-2.0, // 2
191-
NaN,
192-
4.0, // 3
193-
NaN
194-
]);
195-
196-
v = sdsnanmeanors( [ vector( x, 4, 2, 0 ) ] );
197-
198-
t.strictEqual( v, 1.25, 'returns expected value' );
199-
t.end();
200-
});

0 commit comments

Comments
 (0)