Skip to content

Commit 1bb4d94

Browse files
committed
Fix benchmark assertion
1 parent 04f3378 commit 1bb4d94

File tree

1 file changed

+1
-2
lines changed
  • lib/node_modules/@stdlib/stats/incr/mgrubbs/benchmark

1 file changed

+1
-2
lines changed

lib/node_modules/@stdlib/stats/incr/mgrubbs/benchmark/benchmark.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ bench( pkg+'::options', function benchmark( b ) {
6060

6161
b.tic();
6262
for ( i = 0; i < b.iterations; i++ ) {
63-
opts.init = i;
6463
f = incrmgrubbs( (i%20)+3, opts );
6564
if ( typeof f !== 'function' ) {
6665
b.fail( 'should return a function' );
@@ -84,7 +83,7 @@ bench( pkg+'::accumulator', function benchmark( b ) {
8483
b.tic();
8584
for ( i = 0; i < b.iterations; i++ ) {
8685
t = acc( rnorm( 10.0, 5.0 ) );
87-
if ( t && typeof t.rejected === 'boolean' ) {
86+
if ( t && typeof t.rejected !== 'boolean' ) {
8887
b.fail( 'should be a boolean' );
8988
}
9089
}

0 commit comments

Comments
 (0)