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 @@ -73,6 +73,7 @@ tape( 'the function computes the inverse half-value versed cosine via a callback
ahavercosBy( x.length, x, 1, 0, y, 1, 0, accessor );
t.deepEqual( y, expected, 'deep equal' );

// eslint-disable-next-line stdlib/no-new-array
x = new Array( 5 ); // sparse array
y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];

Expand All @@ -81,6 +82,7 @@ tape( 'the function computes the inverse half-value versed cosine via a callback
ahavercosBy( x.length, x, 1, 0, y, 1, 0, accessor );
t.deepEqual( y, expected, 'deep equal' );

// eslint-disable-next-line stdlib/no-new-array
x = new Array( 5 ); // sparse array
x[ 2 ] = rand();
y = [ 0.0, 0.0, 0.0, 0.0, 0.0 ];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

var resolve = require( 'path' ).resolve;
var readFile = require( '@stdlib/fs/read-file' );
var format = require( '@stdlib/string/format' );
var forEachRightAsync = require( './../lib' );

var files = [
Expand All @@ -42,7 +43,7 @@ function read( file, next ) {

function onFile( error ) {
if ( error ) {
error = new Error( 'unable to read file: '+file );
error = new Error( format( 'unable to read file: %s', file ) );
return next( error );
}
console.log( 'Successfully read file: %s', file );
Expand Down