|
23 | 23 | var tape = require( 'tape' ); |
24 | 24 | var aversin = require( '@stdlib/math/base/special/aversin' ); |
25 | 25 | var uniform = require( '@stdlib/random/base/uniform' ).factory; |
26 | | -var filled = require( '@stdlib/array/base/filled' ); |
27 | 26 | var aversinBy = require( './../lib/ndarray.js' ); |
28 | 27 |
|
29 | 28 |
|
@@ -74,15 +73,17 @@ tape( 'the function computes the inverse versed sine via a callback function', f |
74 | 73 | aversinBy( x.length, x, 1, 0, y, 1, 0, accessor ); |
75 | 74 | t.deepEqual( y, expected, 'deep equal' ); |
76 | 75 |
|
77 | | - x = filled( void 0, 5 ); |
| 76 | + // Sparse array: |
| 77 | + x = new Array( 5 ); // eslint-disable-line stdlib/no-new-array |
78 | 78 | y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; |
79 | 79 |
|
80 | 80 | expected = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; |
81 | 81 |
|
82 | 82 | aversinBy( x.length, x, 1, 0, y, 1, 0, accessor ); |
83 | 83 | t.deepEqual( y, expected, 'deep equal' ); |
84 | 84 |
|
85 | | - x = filled( void 0, 5 ); |
| 85 | + // Sparse array: |
| 86 | + x = new Array( 5 ); // eslint-disable-line stdlib/no-new-array |
86 | 87 | x[ 2 ] = rand(); |
87 | 88 | y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; |
88 | 89 |
|
|
0 commit comments