Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* limitations under the License.
*/

/* eslint-disable no-new-wrappers, no-empty-function */
/* eslint-disable no-empty-function */

'use strict';

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,18 +76,22 @@ tape( 'the function performs element-wise multiplication via a callback function
mulBy( x.length, x, 1, 0, y, 1, 0, z, 1, 0, accessor );
t.deepEqual( z, expected, 'deep equal' );

x = new Array( 5 ); // sparse array
y = new Array( 5 ); // sparse array
x = [];
x.length = 5; // sparse array
y = [];
y.length = 5; // sparse array
z = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];

expected = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];

mulBy( x.length, x, 1, 0, y, 1, 0, z, 1, 0, accessor );
t.deepEqual( z, expected, 'deep equal' );

x = new Array( 5 ); // sparse array
x = [];
x.length = 5; // sparse array
x[ 2 ] = rand();
y = new Array( 5 ); // sparse array
y = [];
y.length = 5; // sparse array
y[ 2 ] = rand();
z = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];

Expand Down
Loading