Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 2 additions & 8 deletions lib/node_modules/@stdlib/stats/incr/nanmmeanvar/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,8 @@
// MODULES //

var tape = require( 'tape' );
var isAlmostSameValue = require( '@stdlib/assert/is-almost-same-value' );
var randu = require( '@stdlib/random/base/randu' );
var abs = require( '@stdlib/math/base/special/abs' );
var EPS = require( '@stdlib/constants/float64/eps' );
var incrnanmmeanvar = require( './../lib' );


Expand Down Expand Up @@ -201,9 +200,7 @@ tape( 'the accumulator function computes a moving arithmetic mean and unbiased s
tape( 'if not provided an input value, the accumulator function returns the current accumulated values', function test( t ) {
var expected;
var actual;
var delta;
var data;
var tol;
var acc;
var i;

Expand All @@ -220,10 +217,7 @@ tape( 'if not provided an input value, the accumulator function returns the curr
actual = acc();

t.strictEqual( actual[ 0 ], expected[ 0 ], 'returns expected value' );

delta = abs( actual[ 1 ] - expected[ 1 ] );
tol = EPS * expected[ 1 ];
t.strictEqual( delta < tol, true, 'expected: '+expected[ 1 ]+'. actual: '+actual+'. tol: '+tol+'. delta: '+delta+'.' );
t.strictEqual( isAlmostSameValue( actual[ 1 ], expected[ 1 ], 0 ), true, 'returns expected value' );

t.end();
});
Expand Down
Loading