diff --git a/lib/node_modules/@stdlib/math/strided/special/cbrt-by/test/test.main.js b/lib/node_modules/@stdlib/math/strided/special/cbrt-by/test/test.main.js index 3731585c663e..88d8fc6c6f88 100644 --- a/lib/node_modules/@stdlib/math/strided/special/cbrt-by/test/test.main.js +++ b/lib/node_modules/@stdlib/math/strided/special/cbrt-by/test/test.main.js @@ -74,7 +74,8 @@ tape( 'the function computes the cube root of each indexed strided array element cbrtBy( x.length, x, 1, y, 1, accessor ); t.deepEqual( y, expected, 'deep equal' ); - x = new Array( 5 ); // sparse array + x = []; + x.length = 5; // sparse array y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; expected = [ 0.0, 0.0, 0.0, 0.0, 0.0 ]; @@ -82,7 +83,8 @@ tape( 'the function computes the cube root of each indexed strided array element cbrtBy( x.length, x, 1, y, 1, accessor ); t.deepEqual( y, expected, 'deep equal' ); - x = new Array( 5 ); // sparse array + x = []; + x.length = 5; // sparse array x[ 2 ] = rand(); y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];