Skip to content

Commit 1ad1cd2

Browse files
committed
constructor removed
1 parent 5303568 commit 1ad1cd2

File tree

1 file changed

+2
-2
lines changed
  • lib/node_modules/@stdlib/stats/incr/nanmax/test

1 file changed

+2
-2
lines changed

lib/node_modules/@stdlib/stats/incr/nanmax/test/test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ tape( 'the accumulator function incrementally computes a maximum value, ignoring
5858
N = data.length;
5959

6060
expected = [ 2.0, 2.0, 3.0, 3.0, 4.0, 4.0, 4.0, 4.0 ];
61-
actual = new Array( N );
61+
actual = [];
6262

6363
acc = incrnanmax();
6464

6565
for ( i = 0; i < N; i++ ) {
6666
d = data[ i ];
67-
actual[ i ] = acc( d );
67+
actual.push( acc ( d ) );
6868
}
6969
t.deepEqual( actual, expected, 'returns expected incremental results' );
7070
t.end();

0 commit comments

Comments
 (0)