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/simulate/iter/awun/test/test.js
-69Lines changed: 0 additions & 69 deletions
Original file line number
Diff line number
Diff line change
@@ -500,75 +500,6 @@ tape( 'the function supports providing a seeded pseudorandom number generator fo
500
500
t.end();
501
501
});
502
502
503
-
tape('the function returns an iterator protocol-compliant object which iteratively introduces additive white uniform noise (value+done)',functiontest(t){
504
-
varexpected;
505
-
varactual;
506
-
varvalues;
507
-
varrunif;
508
-
varit;
509
-
varv;
510
-
vari;
511
-
512
-
runif=uniform.factory(-SQRT_THREE,SQRT_THREE,{
513
-
'seed': 12345
514
-
});
515
-
516
-
values=[2.0,3.0,2.0,4.0,3.0,4.0];
517
-
518
-
expected=[];
519
-
for(i=0;i<values.length;i++){
520
-
expected.push(values[i]+runif());
521
-
}
522
-
523
-
it=iterawun(createIterator(values),1.0,{
524
-
'seed': 12345
525
-
});
526
-
t.equal(it.next.length,0,'has zero arity');
527
-
528
-
actual=[];
529
-
for(i=0;i<values.length;i++){
530
-
v=it.next();
531
-
t.equal(typeofv.value,'number','returns a number');
532
-
t.equal(typeofv.done,'boolean','returns a boolean');
0 commit comments