Skip to content

Commit 5913d81

Browse files
authored
chore: update test cases
Signed-off-by: Shabareesh Shetty <[email protected]>
1 parent 7dcaa31 commit 5913d81

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

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

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ tape( 'the function throws an error if provided an invalid sixth argument', func
203203
}
204204
});
205205

206-
tape( 'the function throws an error if provided an invalid sventh argument', function test( t ) {
206+
tape( 'the function throws an error if provided an invalid seventh argument', function test( t ) {
207207
var values;
208208
var data;
209209
var i;
@@ -226,6 +226,29 @@ tape( 'the function throws an error if provided an invalid sventh argument', fun
226226
}
227227
});
228228

229+
tape( 'the function throws an error if provided an invalid tenth argument', function test( t ) {
230+
var values;
231+
var data;
232+
var i;
233+
234+
data = rutu;
235+
236+
values = [
237+
0
238+
];
239+
240+
for ( i = 0; i < values.length; i++ ) {
241+
t.throws( badValue( values[ i ] ), RangeError, 'throws an error when provided ' + values[ i ] );
242+
}
243+
t.end();
244+
245+
function badValue( value ) {
246+
return function badValue() {
247+
dtrsv( data.uplo, data.trans, data.diag, data.N, new Float64Array( data.A ), data.strideA1, data.strideA2, data.offsetA, new Float64Array( data.x ), value, data.offsetX );
248+
};
249+
}
250+
});
251+
229252
tape( 'the function solves one of the systems of equations `A*x = b` or `A^T*x = b` (row-major, lower, no transpose, non-unit)', function test( t ) {
230253
var expected;
231254
var data;

0 commit comments

Comments
 (0)