From 6ac62f700bf5d4b2ec89c6fc2e4038a0a78dd00b Mon Sep 17 00:00:00 2001 From: JavaTypedScript Date: Wed, 17 Dec 2025 02:15:49 +0000 Subject: [PATCH] chore: fix JavaScript lint errors (issue #9108) --- type: pre_commit_static_analysis_report description: Results of running static analysis checks when committing changes. report: - task: lint_filenames status: passed - task: lint_editorconfig status: passed - task: lint_markdown status: na - task: lint_package_json status: na - task: lint_repl_help status: na - task: lint_javascript_src status: na - task: lint_javascript_cli status: na - task: lint_javascript_examples status: na - task: lint_javascript_tests status: passed - task: lint_javascript_benchmarks status: na - task: lint_python status: na - task: lint_r status: na - task: lint_c_src status: na - task: lint_c_examples status: na - task: lint_c_benchmarks status: na - task: lint_c_tests_fixtures status: na - task: lint_shell status: na - task: lint_typescript_declarations status: passed - task: lint_typescript_tests status: na - task: lint_license_headers status: passed --- --- .../base/srotm/test/test.ndarray.native.js | 80 +++++++++---------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/lib/node_modules/@stdlib/blas/base/srotm/test/test.ndarray.native.js b/lib/node_modules/@stdlib/blas/base/srotm/test/test.ndarray.native.js index 881dcb0559a2..d7846e522ad7 100644 --- a/lib/node_modules/@stdlib/blas/base/srotm/test/test.ndarray.native.js +++ b/lib/node_modules/@stdlib/blas/base/srotm/test/test.ndarray.native.js @@ -296,20 +296,20 @@ tape( 'the function applies a plane rotation', opts, function test( t ) { srotm( 3, x, 2, 0, y, 2, 0, param ); - xe = new Float32Array( [ + xe = new Float32Array([ -18.0, // 0 2.0, -24.0, // 1 4.0, -30.0 // 2 - ] ); - ye = new Float32Array( [ + ]); + ye = new Float32Array([ 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 ); @@ -332,20 +332,20 @@ tape( 'the function applies a plane rotation', opts, function test( t ) { srotm( 2, x, 3, 0, y, 3, 0, param ); - xe = new Float32Array( [ + xe = new Float32Array([ 6.0, // 0 2.0, 3.0, 9.0, // 1 5.0 - ] ); - ye = new Float32Array( [ + ]); + ye = new Float32Array([ -1.0, // 0 7.0, 8.0, -4.0, // 1 10.0 - ] ); + ]); isApprox( t, x, xe, 1.0 ); isApprox( t, y, ye, 1.0 ); @@ -379,20 +379,20 @@ tape( 'the function supports an `x` stride', opts, function test( t ) { srotm( 2, x, 2, 0, y, 1, 0, param ); - xe = new Float32Array( [ + xe = new Float32Array([ -17.0, // 0 2.0, -18.0, // 1 4.0, 5.0 - ] ); - ye = new Float32Array( [ + ]); + ye = new Float32Array([ 8.0, // 0 13.0, // 1 8.0, 9.0, 10.0 - ] ); + ]); isApprox( t, x, xe, 2.0 ); isApprox( t, y, ye, 2.0 ); @@ -415,20 +415,20 @@ tape( 'the function supports an `x` stride', opts, function test( t ) { srotm( 2, x, 3, 0, y, 1, 0, param ); - xe = new Float32Array( [ + xe = new Float32Array([ -18.0, // 0 2.0, 3.0, -21.0, // 1 5.0 - ] ); - ye = new Float32Array( [ + ]); + ye = new Float32Array([ 2.0, // 0 8.0, // 1 8.0, 9.0, 10.0 - ] ); + ]); isApprox( t, x, xe, 1.0 ); isApprox( t, y, ye, 1.0 ); @@ -486,20 +486,20 @@ tape( 'the function supports an `x` offset', opts, function test( t ) { srotm( 2, x, -2, 2, y, 1, 0, param ); - xe = new Float32Array( [ + xe = new Float32Array([ -21.0, // 1 2.0, -18.0, // 0 4.0, 5.0 - ] ); - ye = new Float32Array( [ + ]); + ye = new Float32Array([ 6.0, // 0 2.0, // 1 8.0, 9.0, 10.0 - ] ); + ]); isApprox( t, x, xe, 2.0 ); isApprox( t, y, ye, 2.0 ); @@ -522,20 +522,20 @@ tape( 'the function supports an `x` offset', opts, function test( t ) { srotm( 3, x, -2, 4, y, 1, 0, param ); - xe = new Float32Array( [ + xe = new Float32Array([ 8.0, // 2 2.0, 7.0, // 1 4.0, 6.0 // 0 - ] ); - ye = new Float32Array( [ + ]); + ye = new Float32Array([ -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 ); @@ -568,20 +568,20 @@ tape( 'the function supports a `y` stride', opts, function test( t ) { srotm( 3, x, 1, 0, y, 2, 0, param ); - xe = new Float32Array( [ + xe = new Float32Array([ -17.0, // 0 -22.0, // 1 -27.0, // 2 4.0, 5.0 - ] ); - ye = new Float32Array( [ + ]); + ye = new Float32Array([ 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 ); @@ -604,20 +604,20 @@ tape( 'the function supports a `y` stride', opts, function test( t ) { srotm( 2, x, 1, 0, y, 3, 0, param ); - xe = new Float32Array( [ + xe = new Float32Array([ -18.0, // 0 -27.0, // 1 3.0, 4.0, 5.0 - ] ); - ye = new Float32Array( [ + ]); + ye = new Float32Array([ 2.0, // 0 7.0, 8.0, 4.0, // 1 10.0 - ] ); + ]); isApprox( t, x, xe, 1.0 ); isApprox( t, y, ye, 1.0 ); @@ -675,20 +675,20 @@ tape( 'the function supports a `y` offset', opts, function test( t ) { srotm( 2, x, 1, 0, y, -2, 2, param ); - xe = new Float32Array( [ + xe = new Float32Array([ 8.0, // 0 6.0, // 1 3.0, 4.0, 5.0 - ] ); - ye = new Float32Array( [ + ]); + ye = new Float32Array([ -2.0, // 1 7.0, -1.0, // 0 9.0, 10.0 - ] ); + ]); isApprox( t, x, xe, 2.0 ); isApprox( t, y, ye, 2.0 ); @@ -711,20 +711,20 @@ tape( 'the function supports a `y` offset', opts, function test( t ) { srotm( 3, x, 1, 0, y, -2, 4, param ); - xe = new Float32Array( [ + xe = new Float32Array([ -30.0, // 0 -24.0, // 1 -18.0, // 2 4.0, 5.0 - ] ); - ye = new Float32Array( [ + ]); + ye = new Float32Array([ 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 );