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