You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/node_modules/@stdlib/stats/iter/mmaxabs/test/test.js
-58Lines changed: 0 additions & 58 deletions
Original file line number
Diff line number
Diff line change
@@ -125,64 +125,6 @@ tape( 'the function returns an iterator protocol-compliant object which iterativ
125
125
t.end();
126
126
});
127
127
128
-
tape('the function returns an iterator protocol-compliant object which iteratively computes a moving maximum absolute value (value+done)',functiontest(t){
129
-
varexpected;
130
-
varactual;
131
-
varvalues;
132
-
varit;
133
-
varv;
134
-
vari;
135
-
136
-
values=[2.0,-3.0,2.0,-4.0,3.0,-4.0];
137
-
expected=[2.0,3.0,3.0,4.0,4.0,4.0];
138
-
139
-
it=itermmaxabs(createIterator(values),3);
140
-
t.equal(it.next.length,0,'has zero arity');
141
-
142
-
actual=[];
143
-
for(i=0;i<values.length;i++){
144
-
v=it.next();
145
-
t.equal(typeofv.value,'number','returns a number');
146
-
t.equal(typeofv.done,'boolean','returns a boolean');
0 commit comments