|
21 | 21 | // MODULES // |
22 | 22 |
|
23 | 23 | var tape = require( 'tape' ); |
24 | | -var isnan = require( '@stdlib/math/base/assert/is-nan' ); |
| 24 | +var isnanf = require( '@stdlib/math/base/assert/is-nanf' ); |
25 | 25 | var Float32Array = require( '@stdlib/array/float32' ); |
26 | 26 | var ndarray = require( '@stdlib/ndarray/base/ctor' ); |
27 | 27 | var smeanli = require( './../lib' ); |
@@ -71,24 +71,24 @@ tape( 'the function calculates the arithmetic mean of a one-dimensional ndarray' |
71 | 71 |
|
72 | 72 | x = new Float32Array( [ NaN, 4.0 ] ); |
73 | 73 | 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' ); |
75 | 75 |
|
76 | 76 | t.end(); |
77 | 77 | }); |
78 | 78 |
|
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 ) { |
80 | 80 | var x; |
81 | 81 | var v; |
82 | 82 |
|
83 | 83 | x = new Float32Array( [] ); |
84 | 84 |
|
85 | 85 | 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' ); |
87 | 87 |
|
88 | 88 | t.end(); |
89 | 89 | }); |
90 | 90 |
|
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 ) { |
92 | 92 | var x; |
93 | 93 | var v; |
94 | 94 |
|
|
0 commit comments