Skip to content
Merged
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 @@ -50,7 +50,7 @@
}
} else {
for ( i = 0; i < len; i++ ) {
x.push( new Number( -1.0 ) ); // eslint-disable-line no-new-wrappers
x.push( new Number( -1.0 ) );
}
}
return benchmark;
Expand Down Expand Up @@ -106,13 +106,13 @@
len = pow( 10, i );

f = createBenchmark( isNegativeIntegerArray, len, false );
bench( pkg+':len='+len, f );

Check warning on line 109 in lib/node_modules/@stdlib/assert/is-negative-integer-array/benchmark/benchmark.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Use `@stdlib/string/format` instead of string concatenation for benchmark descriptions

f = createBenchmark( isNegativeIntegerArray.primitives, len, true );
bench( pkg+':primitives:len='+len, f );

Check warning on line 112 in lib/node_modules/@stdlib/assert/is-negative-integer-array/benchmark/benchmark.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Use `@stdlib/string/format` instead of string concatenation for benchmark descriptions

f = createBenchmark( isNegativeIntegerArray.objects, len, false );
bench( pkg+':objects:len='+len, f );

Check warning on line 115 in lib/node_modules/@stdlib/assert/is-negative-integer-array/benchmark/benchmark.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Use `@stdlib/string/format` instead of string concatenation for benchmark descriptions
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,17 +75,17 @@ tape( 'a FancyArray constructor returns an instance which has a `set` method whi

function badValue( value, dim ) {
return function badValue() {
var args = new Array( shape.length+1 );
var args = [];
var i;

for ( i = 0; i < shape.length; i++ ) {
if ( i === dim ) {
args[ i ] = value;
args.push( value );
} else {
args[ i ] = 0;
args.push( 0 );
}
}
args[ i ] = 10.0;
args.push( 10.0 );
arr.set.apply( arr, args );
};
}
Expand Down