Skip to content

Commit 0742bc9

Browse files
authored
test: remove tests
Signed-off-by: Athan <kgryte@gmail.com>
1 parent 903867c commit 0742bc9

File tree

1 file changed

+0
-82
lines changed

1 file changed

+0
-82
lines changed

lib/node_modules/@stdlib/stats/strided/dnanmidrange/test/test.dnanmidrange.native.js

Lines changed: 0 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -49,88 +49,6 @@ tape( 'the function has an arity of 3', opts, function test( t ) {
4949
t.end();
5050
});
5151

52-
tape( 'the function throws an error if provided a first argument which is not a number', opts, function test( t ) {
53-
var values;
54-
var i;
55-
56-
values = [
57-
'5',
58-
true,
59-
false,
60-
null,
61-
void 0,
62-
[],
63-
{},
64-
function noop() {}
65-
];
66-
67-
for ( i = 0; i < values.length; i++ ) {
68-
t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] );
69-
}
70-
t.end();
71-
72-
function badValue( value ) {
73-
return function badValue() {
74-
dnanmidrange( value, new Float64Array( 10 ), 1 );
75-
};
76-
}
77-
});
78-
79-
tape( 'the function throws an error if provided a second argument which is not a Float64Array', opts, function test( t ) {
80-
var values;
81-
var i;
82-
83-
values = [
84-
'5',
85-
5,
86-
true,
87-
false,
88-
null,
89-
void 0,
90-
[],
91-
{},
92-
function noop() {}
93-
];
94-
95-
for ( i = 0; i < values.length; i++ ) {
96-
t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] );
97-
}
98-
t.end();
99-
100-
function badValue( value ) {
101-
return function badValue() {
102-
dnanmidrange( 10, value, 1 );
103-
};
104-
}
105-
});
106-
107-
tape( 'the function throws an error if provided a third argument which is not a number', opts, function test( t ) {
108-
var values;
109-
var i;
110-
111-
values = [
112-
'5',
113-
true,
114-
false,
115-
null,
116-
void 0,
117-
[],
118-
{},
119-
function noop() {}
120-
];
121-
122-
for ( i = 0; i < values.length; i++ ) {
123-
t.throws( badValue( values[ i ] ), TypeError, 'throws an error when provided ' + values[ i ] );
124-
}
125-
t.end();
126-
127-
function badValue( value ) {
128-
return function badValue() {
129-
dnanmidrange( 10, new Float64Array( 10 ), value );
130-
};
131-
}
132-
});
133-
13452
tape( 'the function calculates the mid-range of a strided array', opts, function test( t ) {
13553
var x;
13654
var v;

0 commit comments

Comments
 (0)