From a9ae1d7d7eea5e24f26d6430c8f1a5b7c39f2f0d Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 21 May 2026 14:26:32 +0000 Subject: [PATCH] style(@stdlib/blas/base/drotm): fix spacing in multiline xe/ye arrays The lint workflow on develop (run 26197800347) reported 40 errors in `test/test.ndarray.js`: 20 `eol-open-bracket-spacing` and 20 `line-closing-bracket-spacing` violations. The multiline expected-value arrays xe and ye used `new Float64Array( [` and `] )` with spaces, which the stdlib ESLint rules disallow when array content spans multiple lines. Input arrays x and y in the same file already used the correct no-space format. This commit aligns xe and ye with that established pattern. Ref: https://github.com/stdlib-js/stdlib/actions/runs/26197800347 --- .../blas/base/drotm/test/test.ndarray.js | 80 +++++++++---------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/base/drotm/test/test.ndarray.js b/lib/node_modules/@stdlib/blas/base/drotm/test/test.ndarray.js index 5118337d4626..fabf1307ff30 100644 --- a/lib/node_modules/@stdlib/blas/base/drotm/test/test.ndarray.js +++ b/lib/node_modules/@stdlib/blas/base/drotm/test/test.ndarray.js @@ -287,20 +287,20 @@ tape( 'the function applies a plane rotation', function test( t ) { drotm( 3, x, 2, 0, y, 2, 0, param ); - xe = new Float64Array( [ + xe = new Float64Array([ -18.0, // 0 2.0, -24.0, // 1 4.0, -30.0 // 2 - ] ); - ye = new Float64Array( [ + ]); + ye = new Float64Array([ 2.0, // 0 7.0, 6.0, // 1 9.0, 10.0 // 2 - ] ); + ]); isApprox( t, x, xe, 1.0 ); isApprox( t, y, ye, 1.0 ); @@ -323,20 +323,20 @@ tape( 'the function applies a plane rotation', function test( t ) { drotm( 2, x, 3, 0, y, 3, 0, param ); - xe = new Float64Array( [ + xe = new Float64Array([ 6.0, // 0 2.0, 3.0, 9.0, // 1 5.0 - ] ); - ye = new Float64Array( [ + ]); + ye = new Float64Array([ -1.0, // 0 7.0, 8.0, -4.0, // 1 10.0 - ] ); + ]); isApprox( t, x, xe, 1.0 ); isApprox( t, y, ye, 1.0 ); @@ -370,20 +370,20 @@ tape( 'the function supports an `x` stride', function test( t ) { drotm( 2, x, 2, 0, y, 1, 0, param ); - xe = new Float64Array( [ + xe = new Float64Array([ -17.0, // 0 2.0, -18.0, // 1 4.0, 5.0 - ] ); - ye = new Float64Array( [ + ]); + ye = new Float64Array([ 8.0, // 0 13.0, // 1 8.0, 9.0, 10.0 - ] ); + ]); isApprox( t, x, xe, 2.0 ); isApprox( t, y, ye, 2.0 ); @@ -406,20 +406,20 @@ tape( 'the function supports an `x` stride', function test( t ) { drotm( 2, x, 3, 0, y, 1, 0, param ); - xe = new Float64Array( [ + xe = new Float64Array([ -18.0, // 0 2.0, 3.0, -21.0, // 1 5.0 - ] ); - ye = new Float64Array( [ + ]); + ye = new Float64Array([ 2.0, // 0 8.0, // 1 8.0, 9.0, 10.0 - ] ); + ]); isApprox( t, x, xe, 1.0 ); isApprox( t, y, ye, 1.0 ); @@ -477,20 +477,20 @@ tape( 'the function supports an `x` offset', function test( t ) { drotm( 2, x, -2, 2, y, 1, 0, param ); - xe = new Float64Array( [ + xe = new Float64Array([ -21.0, // 1 2.0, -18.0, // 0 4.0, 5.0 - ] ); - ye = new Float64Array( [ + ]); + ye = new Float64Array([ 6.0, // 0 2.0, // 1 8.0, 9.0, 10.0 - ] ); + ]); isApprox( t, x, xe, 2.0 ); isApprox( t, y, ye, 2.0 ); @@ -513,20 +513,20 @@ tape( 'the function supports an `x` offset', function test( t ) { drotm( 3, x, -2, 4, y, 1, 0, param ); - xe = new Float64Array( [ + xe = new Float64Array([ 8.0, // 2 2.0, 7.0, // 1 4.0, 6.0 // 0 - ] ); - ye = new Float64Array( [ + ]); + ye = new Float64Array([ -5.0, // 0 -3.0, // 1 -1.0, // 2 9.0, 10.0 - ] ); + ]); isApprox( t, x, xe, 2.0 ); isApprox( t, y, ye, 2.0 ); @@ -559,20 +559,20 @@ tape( 'the function supports a `y` stride', function test( t ) { drotm( 3, x, 1, 0, y, 2, 0, param ); - xe = new Float64Array( [ + xe = new Float64Array([ -17.0, // 0 -22.0, // 1 -27.0, // 2 4.0, 5.0 - ] ); - ye = new Float64Array( [ + ]); + ye = new Float64Array([ 8.0, // 0 7.0, 12.0, // 1 9.0, 16.0 // 2 - ] ); + ]); isApprox( t, x, xe, 1.0 ); isApprox( t, y, ye, 1.0 ); @@ -595,20 +595,20 @@ tape( 'the function supports a `y` stride', function test( t ) { drotm( 2, x, 1, 0, y, 3, 0, param ); - xe = new Float64Array( [ + xe = new Float64Array([ -18.0, // 0 -27.0, // 1 3.0, 4.0, 5.0 - ] ); - ye = new Float64Array( [ + ]); + ye = new Float64Array([ 2.0, // 0 7.0, 8.0, 4.0, // 1 10.0 - ] ); + ]); isApprox( t, x, xe, 1.0 ); isApprox( t, y, ye, 1.0 ); @@ -666,20 +666,20 @@ tape( 'the function supports a `y` offset', function test( t ) { drotm( 2, x, 1, 0, y, -2, 2, param ); - xe = new Float64Array( [ + xe = new Float64Array([ 8.0, // 0 6.0, // 1 3.0, 4.0, 5.0 - ] ); - ye = new Float64Array( [ + ]); + ye = new Float64Array([ -2.0, // 1 7.0, -1.0, // 0 9.0, 10.0 - ] ); + ]); isApprox( t, x, xe, 2.0 ); isApprox( t, y, ye, 2.0 ); @@ -702,20 +702,20 @@ tape( 'the function supports a `y` offset', function test( t ) { drotm( 3, x, 1, 0, y, -2, 4, param ); - xe = new Float64Array( [ + xe = new Float64Array([ -30.0, // 0 -24.0, // 1 -18.0, // 2 4.0, 5.0 - ] ); - ye = new Float64Array( [ + ]); + ye = new Float64Array([ 6.0, // 2 7.0, 4.0, // 1 9.0, 2.0 // 0 - ] ); + ]); isApprox( t, x, xe, 2.0 ); isApprox( t, y, ye, 2.0 );