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 @@ -39,7 +39,7 @@
* var lint = require( '@stdlib/_tools/lint/header-filenames' );
*
* var errs = lint.sync();
* // returns [...]
* // returns []
*/

// MODULES //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
var f;
var i;

arr1 = new Array( 25 );
for ( i = 0; i < arr1.length; i++ ) {
arr1[ i ] = i;
arr1 = [];
for (i = 0; i < 25; i++) {
arr1.push(i);
}

arr2 = new Array( 25 );
for ( i = 0; i < arr2.length; i++ ) {
arr2[ i ] = 2 * i;
arr2 = [];
for (i = 0; i < 25; i++) {
arr2.push(i);
}

f = arraylikefcn( isEven );
Expand All @@ -43,6 +43,6 @@
console.log( bool );
// => false

bool = f( arr2 );

Check failure on line 46 in lib/node_modules/@stdlib/assert/tools/array-like-function/examples/index.js

View workflow job for this annotation

GitHub Actions / Lint Changed Files

Displayed return value is `true`, but expected `false` instead
console.log( bool );
// => true
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@
var FLOAT32_NINF = require( './../lib' );

console.log( FLOAT32_NINF );
// => -infinity
// => -Infinity
Original file line number Diff line number Diff line change
Expand Up @@ -74,15 +74,17 @@ tape( 'the function computes the arctangent via a callback function', function t
atanBy( 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 ];

atanBy( 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 ];

Expand Down
Loading