Skip to content

Commit 67b3f31

Browse files
committed
Fix descriptions and fix lint errors
1 parent d039cb9 commit 67b3f31

File tree

2 files changed

+14
-6
lines changed

2 files changed

+14
-6
lines changed

lib/node_modules/@stdlib/blas/base/saxpy/test/test.ndarray.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -206,10 +206,14 @@ tape( 'the function supports a `y` offset', function test( t ) {
206206
});
207207

208208
tape( 'the function returns a reference to the destination array', function test( t ) {
209-
var x = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
210-
var y = new Float32Array( [ 6.0, 7.0, 8.0, 9.0, 10.0 ] );
209+
var out;
210+
var x;
211+
var y;
212+
213+
x = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
214+
y = new Float32Array( [ 6.0, 7.0, 8.0, 9.0, 10.0 ] );
211215

212-
var out = saxpy( x.length, 3.0, x, 1, 0, y, 1, 0 );
216+
out = saxpy( x.length, 3.0, x, 1, 0, y, 1, 0 );
213217

214218
t.strictEqual( out, y, 'same reference' );
215219
t.end();

lib/node_modules/@stdlib/blas/base/saxpy/test/test.ndarray.native.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -215,10 +215,14 @@ tape( 'the function supports a `y` offset', opts, function test( t ) {
215215
});
216216

217217
tape( 'the function returns a reference to the destination array', opts, function test( t ) {
218-
var x = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
219-
var y = new Float32Array( [ 6.0, 7.0, 8.0, 9.0, 10.0 ] );
218+
var out;
219+
var x;
220+
var y;
221+
222+
x = new Float32Array( [ 1.0, 2.0, 3.0, 4.0, 5.0 ] );
223+
y = new Float32Array( [ 6.0, 7.0, 8.0, 9.0, 10.0 ] );
220224

221-
var out = saxpy( x.length, 3.0, x, 1, 0, y, 1, 0 );
225+
out = saxpy( x.length, 3.0, x, 1, 0, y, 1, 0 );
222226

223227
t.strictEqual( out, y, 'same reference' );
224228
t.end();

0 commit comments

Comments
 (0)