Skip to content

Commit af2448f

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

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

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

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

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

2323
var tape = require( 'tape' );
24-
var isnan = require( '@stdlib/math/base/assert/is-nan' );
25-
var isPositiveZero = require( '@stdlib/math/base/assert/is-positive-zero' );
24+
var isnanf = require( '@stdlib/math/base/assert/is-nanf' );
25+
var isPositiveZerof = require( '@stdlib/math/base/assert/is-positive-zerof' );
2626
var Float32Array = require( '@stdlib/array/float32' );
2727
var ndarray = require( '@stdlib/ndarray/base/ctor' );
2828
var smeankbn2 = require( './../lib' );
@@ -72,32 +72,32 @@ tape( 'the function calculates the arithmetic mean of a one-dimensional ndarray'
7272

7373
x = new Float32Array( [ -0.0, 0.0, -0.0 ] );
7474
v = smeankbn2( [ vector( x, 3, 1, 0 ) ] );
75-
t.strictEqual( isPositiveZero( v ), true, 'returns expected value' );
75+
t.strictEqual( isPositiveZerof( v ), true, 'returns expected value' );
7676

7777
x = new Float32Array( [ NaN ] );
7878
v = smeankbn2( [ vector( x, 1, 1, 0 ) ] );
79-
t.strictEqual( isnan( v ), true, 'returns expected value' );
79+
t.strictEqual( isnanf( v ), true, 'returns expected value' );
8080

8181
x = new Float32Array( [ NaN, NaN ] );
8282
v = smeankbn2( [ vector( x, 2, 1, 0 ) ] );
83-
t.strictEqual( isnan( v ), true, 'returns expected value' );
83+
t.strictEqual( isnanf( v ), true, 'returns expected value' );
8484

8585
t.end();
8686
});
8787

88-
tape( 'if provided an empty vector, the function returns `NaN`', function test( t ) {
88+
tape( 'if provided an empty ndarray, the function returns `NaN`', function test( t ) {
8989
var x;
9090
var v;
9191

9292
x = new Float32Array( [] );
9393

9494
v = smeankbn2( [ vector( x, 0, 1, 0 ) ] );
95-
t.strictEqual( isnan( v ), true, 'returns expected value' );
95+
t.strictEqual( isnanf( v ), true, 'returns expected value' );
9696

9797
t.end();
9898
});
9999

100-
tape( 'if provided a vector containing a single element, the function returns that element', function test( t ) {
100+
tape( 'if provided an ndarray containing a single element, the function returns that element', function test( t ) {
101101
var x;
102102
var v;
103103

0 commit comments

Comments
 (0)