Skip to content

Commit 663e715

Browse files
committed
test: update test
--- 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 ---
1 parent 93406df commit 663e715

File tree

1 file changed

+4
-4
lines changed
  • lib/node_modules/@stdlib/ndarray/base/broadcast-array-except-dimensions/test

1 file changed

+4
-4
lines changed

lib/node_modules/@stdlib/ndarray/base/broadcast-array-except-dimensions/test/test.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -457,10 +457,10 @@ tape( 'the function broadcasts an input array (singleton dimension)', function t
457457
var v;
458458
var i;
459459

460-
data = [ 1, 2 ];
460+
data = [ 1 ];
461461
x = array( data, {
462462
'dtype': 'generic',
463-
'shape': [ 1, 2 ],
463+
'shape': [ 1, 1 ],
464464
'order': 'row-major'
465465
});
466466

@@ -475,13 +475,13 @@ tape( 'the function broadcasts an input array (singleton dimension)', function t
475475
t.strictEqual( v, data[ 0 ], 'returns expected value for element ('+i+',0,0)' );
476476

477477
v = y.get( i, 0, 1 );
478-
t.strictEqual( v, data[ 1 ], 'returns expected value for element ('+i+',0,1)' );
478+
t.strictEqual( v, data[ 0 ], 'returns expected value for element ('+i+',0,1)' );
479479

480480
v = y.get( i, 0, 0 );
481481
t.strictEqual( v, data[ 0 ], 'returns expected value for element ('+i+',0,0)' );
482482

483483
v = y.get( i, 0, 1 );
484-
t.strictEqual( v, data[ 1 ], 'returns expected value for element ('+i+',0,1)' );
484+
t.strictEqual( v, data[ 0 ], 'returns expected value for element ('+i+',0,1)' );
485485
}
486486
t.end();
487487
});

0 commit comments

Comments
 (0)