Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 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
6 changes: 6 additions & 0 deletions lib/node_modules/@stdlib/math/base/special/acos/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' );
var randu = require( '@stdlib/random/base/randu' );
var abs = require( '@stdlib/math/base/special/abs' );
var EPS = require( '@stdlib/constants/float64/eps' );
var isPositiveZero = require( '@stdlib/assert/is-positive-zero' );
var acos = require( './../lib' );


Expand Down Expand Up @@ -140,3 +141,8 @@ tape( 'the function returns `NaN` if provided a value greater than `+1`', functi
}
t.end();
});

tape( 'the function returns `0` if provided `1`', function test( t ) {
t.equal( isPositiveZero( acos( 1.0 ) ), true, 'returns expected value' );
t.end();
});
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ var randu = require( '@stdlib/random/base/randu' );
var tryRequire = require( '@stdlib/utils/try-require' );
var abs = require( '@stdlib/math/base/special/abs' );
var EPS = require( '@stdlib/constants/float64/eps' );
var isPositiveZero = require( '@stdlib/assert/is-positive-zero' );


// FIXTURES //
Expand Down Expand Up @@ -149,3 +150,8 @@ tape( 'the function returns `NaN` if provided a value greater than `+1`', opts,
}
t.end();
});

tape( 'the function returns `0` if provided `1`', opts, function test( t ) {
t.equal( isPositiveZero( acos( 1.0 ) ), true, 'returns expected value' );
t.end();
});
6 changes: 6 additions & 0 deletions lib/node_modules/@stdlib/math/base/special/acosh/test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' );
var randu = require( '@stdlib/random/base/randu' );
var EPS = require( '@stdlib/constants/float64/eps' );
var abs = require( '@stdlib/math/base/special/abs' );
var isPositiveZero = require( '@stdlib/assert/is-positive-zero' );
var acosh = require( './../lib' );


Expand Down Expand Up @@ -156,3 +157,8 @@ tape( 'the function returns `NaN` if provided value less than `1`', function tes
}
t.end();
});

tape( 'the function returns `0` if provided `1`', function test( t ) {
t.equal( isPositiveZero( acosh( 1.0 ) ), true, 'returns expected value' );
t.end();
});
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ var isnan = require( '@stdlib/math/base/assert/is-nan' );
var randu = require( '@stdlib/random/base/randu' );
var EPS = require( '@stdlib/constants/float64/eps' );
var abs = require( '@stdlib/math/base/special/abs' );
var isPositiveZero = require( '@stdlib/assert/is-positive-zero' );
var tryRequire = require( '@stdlib/utils/try-require' );


Expand Down Expand Up @@ -165,3 +166,8 @@ tape( 'the function returns `NaN` if provided value less than `1`', opts, functi
}
t.end();
});

tape( 'the function returns `0` if provided `1`', opts, function test( t ) {
t.equal( isPositiveZero( acosh( 1.0 ) ), true, 'returns expected value' );
t.end();
});