Skip to content

Commit 5eb92ae

Browse files
tests:- adding tests to achieve 100% test coverage
1 parent e63e0d9 commit 5eb92ae

File tree

4 files changed

+0
-44
lines changed

4 files changed

+0
-44
lines changed

lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/test/test.dnansumkbn2.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,6 @@ tape( 'the function has an arity of 3', function test( t ) {
3838
t.end();
3939
});
4040

41-
tape( 'if provided a `stride` parameter equal to `0` and the first element is NaN, the function returns 0', opts, function test( t ) {
42-
var x;
43-
var v;
44-
45-
x = new Float64Array( [ NaN, 1.0, 2.0, 3.0, 4.0 ] );
46-
47-
v = dnansumkbn2( x.length, x, 0 );
48-
t.strictEqual( v, 0.0, 'returns expected Value' );
49-
t.end();
50-
});
51-
5241
tape( 'the function calculates the sum of strided array elements (ignoring NaN values)', function test( t ) {
5342
var x;
5443
var v;

lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/test/test.dnansumkbn2.native.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,17 +47,6 @@ tape( 'the function has an arity of 3', opts, function test( t ) {
4747
t.end();
4848
});
4949

50-
tape( 'if provided a `stride` parameter equal to `0` and the first element is NaN, the function returns 0', opts, function test( t ) {
51-
var x;
52-
var v;
53-
54-
x = new Float64Array( [ NaN, 1.0, 2.0, 3.0, 4.0 ] );
55-
56-
v = dnansumkbn2( x.length, x, 0 );
57-
t.strictEqual( v, 0.0, 'returns expected Value' );
58-
t.end();
59-
});
60-
6150
tape( 'the functions throws an error if provided a first argument which is not a number', opts, function test( t ) {
6251
var values;
6352
var i;

lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/test/test.ndarray.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,17 +33,6 @@ tape( 'main export is a function', function test( t ) {
3333
t.end();
3434
});
3535

36-
tape( 'if provided a `stride` parameter equal to `0` and the first element is NaN, the function returns 0', opts, function test( t ) {
37-
var x;
38-
var v;
39-
40-
x = new Float64Array( [ NaN, 1.0, 2.0, 3.0, 4.0 ] );
41-
42-
v = dnansumkbn2( x.length, x, 0 );
43-
t.strictEqual( v, 0.0, 'returns expected Value' );
44-
t.end();
45-
});
46-
4736
tape( 'the function has an arity of 4', function test( t ) {
4837
t.strictEqual( dnansumkbn2.length, 4, 'returns expected value' );
4938
t.end();

lib/node_modules/@stdlib/blas/ext/base/dnansumkbn2/test/test.ndarray.native.js

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,6 @@ tape( 'main export is a function', opts, function test( t ) {
4242
t.end();
4343
});
4444

45-
tape( 'if provided a `stride` parameter equal to `0` and the first element is NaN, the function returns 0', opts, function test( t ) {
46-
var x;
47-
var v;
48-
49-
x = new Float64Array( [ NaN, 1.0, 2.0, 3.0, 4.0 ] );
50-
51-
v = dnansumkbn2( x.length, x, 0 );
52-
t.strictEqual( v, 0.0, 'returns expected Value' );
53-
t.end();
54-
});
55-
5645
tape( 'the function has an arity of 4', opts, function test( t ) {
5746
t.strictEqual( dnansumkbn2.length, 4, 'returns expected value' );
5847
t.end();

0 commit comments

Comments
 (0)