Skip to content

Commit c686cc9

Browse files
authored
test: use single-precision utils
Signed-off-by: Athan <kgryte@gmail.com>
1 parent 29a046e commit c686cc9

File tree

1 file changed

+5
-5
lines changed
  • lib/node_modules/@stdlib/stats/base/ndarray/smeanli/test

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// MODULES //
2222

2323
var tape = require( 'tape' );
24-
var isnan = require( '@stdlib/math/base/assert/is-nan' );
24+
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
2525
var Float32Array = require( '@stdlib/array/float32' );
2626
var ndarray = require( '@stdlib/ndarray/base/ctor' );
2727
var smeanli = require( './../lib' );
@@ -71,24 +71,24 @@ tape( 'the function calculates the arithmetic mean of a one-dimensional ndarray'
7171

7272
x = new Float32Array( [ NaN, 4.0 ] );
7373
v = smeanli( [ vector( x, 2, 1, 0 ) ] );
74-
t.strictEqual( isnan( v ), true, 'returns expected value' );
74+
t.strictEqual( isnanf( v ), true, 'returns expected value' );
7575

7676
t.end();
7777
});
7878

79-
tape( 'if provided an empty vector, the function returns `NaN`', function test( t ) {
79+
tape( 'if provided an empty ndarray, the function returns `NaN`', function test( t ) {
8080
var x;
8181
var v;
8282

8383
x = new Float32Array( [] );
8484

8585
v = smeanli( [ vector( x, 0, 1, 0 ) ] );
86-
t.strictEqual( isnan( v ), true, 'returns expected value' );
86+
t.strictEqual( isnanf( v ), true, 'returns expected value' );
8787

8888
t.end();
8989
});
9090

91-
tape( 'if provided a vector containing a single element, the function returns that element', function test( t ) {
91+
tape( 'if provided an ndarray containing a single element, the function returns that element', function test( t ) {
9292
var x;
9393
var v;
9494

0 commit comments

Comments
 (0)