Skip to content

Commit db2ce99

Browse files
committed
fix: update test cases
--- 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: passed - 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 61ecb0e commit db2ce99

File tree

2 files changed

+0
-52
lines changed

2 files changed

+0
-52
lines changed

lib/node_modules/@stdlib/blas/base/sgemv/lib/ndarray.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,6 @@ function sgemv( trans, M, N, alpha, A, strideA1, strideA2, offsetA, x, strideX,
7272
if ( N < 0 ) {
7373
throw new RangeError( format( 'invalid argument. Fourth argument must be a nonnegative integer. Value: `%d`.', N ) );
7474
}
75-
if ( strideA1 === 0 ) {
76-
throw new RangeError( format( 'invalid argument. Sixth argument must be non-zero.', strideA1 ) );
77-
}
78-
if ( strideA2 === 0 ) {
79-
throw new RangeError( format( 'invalid argument. Seventh argument must be non-zero.', strideA2 ) );
80-
}
8175
if ( strideX === 0 ) {
8276
throw new RangeError( format( 'invalid argument. Tenth argument must be non-zero.', strideX ) );
8377
}

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

Lines changed: 0 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -145,52 +145,6 @@ tape( 'the function throws an error if provided an invalid third argument', func
145145
}
146146
});
147147

148-
tape( 'the function throws an error if provided an invalid sixth argument', function test( t ) {
149-
var values;
150-
var data;
151-
var i;
152-
153-
data = rnt;
154-
155-
values = [
156-
0
157-
];
158-
159-
for ( i = 0; i < values.length; i++ ) {
160-
t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] );
161-
}
162-
t.end();
163-
164-
function badValue( value ) {
165-
return function badValue() {
166-
sgemv( data.trans, data.M, data.N, data.alpha, new Float32Array( data.A ), value, data.strideA2, data.offsetA, new Float32Array( data.x ), data.strideX, data.offsetX, data.beta, new Float32Array( data.y ), data.strideY, data.offsetY );
167-
};
168-
}
169-
});
170-
171-
tape( 'the function throws an error if provided an invalid seventh argument', function test( t ) {
172-
var values;
173-
var data;
174-
var i;
175-
176-
data = rnt;
177-
178-
values = [
179-
0
180-
];
181-
182-
for ( i = 0; i < values.length; i++ ) {
183-
t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] );
184-
}
185-
t.end();
186-
187-
function badValue( value ) {
188-
return function badValue() {
189-
sgemv( data.trans, data.M, data.N, data.alpha, new Float32Array( data.A ), data.strideA1, value, data.offsetA, new Float32Array( data.x ), data.strideX, data.offsetX, data.beta, new Float32Array( data.y ), data.strideY, data.offsetY );
190-
};
191-
}
192-
});
193-
194148
tape( 'the function throws an error if provided an invalid tenth argument', function test( t ) {
195149
var values;
196150
var data;

0 commit comments

Comments
 (0)