Skip to content

Commit 2dbe871

Browse files
committed
test: address test failures
--- 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: na - task: lint_typescript_tests status: na - task: lint_license_headers status: passed ---
1 parent 6218e59 commit 2dbe871

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

lib/node_modules/@stdlib/blas/base/zaxpy/test/test.zaxpy.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -555,13 +555,13 @@ tape( 'the function supports view offsets', function test( t ) {
555555
]);
556556

557557
// Define a scalar constant:
558-
alpha = new Complex128( -0.4, -0.7 );
558+
alpha = new Complex128( 0.4, -0.7 );
559559

560560
// Create offset views...
561561
x1 = new Complex128Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // begin at the 2nd element
562562
y1 = new Complex128Array( y0.buffer, y0.BYTES_PER_ELEMENT*2 ); // begin at the 3rd element
563563

564-
zaxpy( 1, alpha, x1, 1, y1, 1 );
564+
zaxpy( 4, alpha, x1, 1, y1, 1 );
565565

566566
viewY = new Float64Array( y0.buffer );
567567
expected = new Float64Array([

lib/node_modules/@stdlib/blas/base/zaxpy/test/test.zaxpy.native.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -302,10 +302,10 @@ tape( 'if provided `alpha` parameter equal to `0`, the function returns the seco
302302
viewY = new Float64Array( cy.buffer );
303303
expected = new Float64Array( [ 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0 ] );
304304

305-
zaxpy( -1, alpha, x, 1, 0, cy, 1, 0 );
305+
zaxpy( -1, alpha, x, 1, cy, 1 );
306306
t.deepEqual( viewY, expected, 'returns expected value' );
307307

308-
zaxpy( 0, alpha, x, 1, 0, cy, 1, 0 );
308+
zaxpy( 0, alpha, x, 1, cy, 1 );
309309
t.deepEqual( viewY, expected, 'returns expected value' );
310310

311311
t.end();
@@ -564,13 +564,13 @@ tape( 'the function supports view offsets', opts, function test( t ) {
564564
]);
565565

566566
// Define a scalar constant:
567-
alpha = new Complex128( -0.4, -0.7 );
567+
alpha = new Complex128( 0.4, -0.7 );
568568

569569
// Create offset views...
570570
x1 = new Complex128Array( x0.buffer, x0.BYTES_PER_ELEMENT*1 ); // begin at the 2nd element
571571
y1 = new Complex128Array( y0.buffer, y0.BYTES_PER_ELEMENT*2 ); // begin at the 3rd element
572572

573-
zaxpy( 1, alpha, x1, 1, y1, 1 );
573+
zaxpy( 4, alpha, x1, 1, y1, 1 );
574574

575575
viewY = new Float64Array( y0.buffer );
576576
expected = new Float64Array([

0 commit comments

Comments
 (0)